- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
validateTokenStep - Medusa Core Workflows Reference
This documentation provides a reference to the validateTokenStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates a specified token and returns its associated invite. If not valid, the step throws an error.
Input#
string
string
string
stringstring
string
string
stringOutput#
InviteDTO
InviteDTOThe invite details.
InviteDTO
InviteDTOid
stringThe ID of the invite.
id
stringemail
stringThe email of the invite.
email
stringaccepted
booleanWhether the invite is accepted.
accepted
booleantoken
stringThe token of the invite.
token
stringexpires_at
DateThe invite's expiry date.
expires_at
Datemetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>created_at
DateThe invite's creation date.
created_at
Dateupdated_at
DateThe invite's update date.
updated_at
Datedeleted_at
null | DateThe invite's deletion date.
deleted_at
null | DateWas this page helpful?