- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
setAuthAppMetadataStep - Medusa Core Workflows Reference
This documentation provides a reference to the setAuthAppMetadataStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step sets the app_metadata
property of an auth identity. This is useful to
associate a user (whether it's an admin user or customer) with an auth identity
that allows them to authenticate into Medusa.
You can learn more about auth identites in this documentation.
To use this for a custom actor type, check out this guide
that explains how to create a custom manager
actor type and manage its users.
Example#
To associate an auth identity with an actor type (user, customer, or other actor types):
To remove the association with an actor type, such as when deleting the user:
Input#
SetAuthAppMetadataStepInput
SetAuthAppMetadataStepInput
SetAuthAppMetadataStepInput
SetAuthAppMetadataStepInputauthIdentityId
string
authIdentityId
stringactorType
string
actorType
stringvalue
string | null
value
string | nullOutput#
AuthIdentityDTO
AuthIdentityDTOThe auth identity details.
AuthIdentityDTO
AuthIdentityDTOid
stringThe ID of the auth identity.
id
stringThe list of provider identities linked to the auth identity.
app_metadata
Record<string, unknown>OptionalHolds information related to the actor IDs tied to the auth identity.
app_metadata
Record<string, unknown>OptionalWas this page helpful?