Loading...
Was this page helpful?
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.
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:
SetAuthAppMetadataStepInput
SetAuthAppMetadataStepInputauthIdentityId
stringactorType
stringvalue
string | nullAuthIdentityDTO
AuthIdentityDTOid
stringapp_metadata
Record<string, unknown>Optional