In a rule I could do the following
const connectionMetadata: ArmoryConnectionMetadata = context.connectionMetadata || {}
In the actions I only see the following in the event.connection object
/** Connection */
declare type Connection = {
/** The connection's unique identifier. */
id: string
/** The name of the connection used to authenticate the user (such as: `twitter` or `some-g-suite-domain`). */
name: string
/**
* The type of connection.
*
* For social connection `connectionStrategy === connection`.
* For enterprise connections, the strategy will be `waad` (Windows Azure AD), `ad` (Active Directory/LDAP), `auth0` (database connections), and so on.
*/
strategy: string
}
Is there a global client around where I can grab the connection metadata with the connection id?
ex: rules had this global around
await auth0.users.updateUserMetadata(user.user_id, {
...userMetadata,
lastEnvId: requestedEnvironmentId
})
Is there an auth0.connections.getConnection(connectionId)
or something that can be used in an Action?