magicTokenLogin
Authenticate using a magic token and create a user session.
Validates the provided magic token and creates an authenticated session for the associated contact or customer. Returns session information including access and refresh tokens.
If the token is configured for one-time use, it will be automatically invalidated after successful authentication.
Possible errors:
- MAGIC_TOKEN_NOT_FOUND_ERROR: Magic token does not exist or has been deleted
- MAGIC_TOKEN_INVALID_ERROR: Magic token has expired, already been used, or has no associated login
- USER_NOT_FOUND_ERROR: User associated with the magic token does not exist
- MAGIC_TOKEN_LOGIN_ERROR: General error during magic token authentication process
magicTokenLogin(
id: String!
): Login!
Arguments
magicTokenLogin.id
● String!
non-null scalar
Magic token identifier to use for authentication.
Can be either the token's UUID or the actual token string value.
Type
Login
object
Authentication response containing login session information.
Returned after successful user authentication, providing session details and user information.