Magic Link APIs
Overview
Using the Magic Link APIs allow enables users to sign in by clicking a link delivered to their email or phone.
Read about Magic Link implementation types here
This authentication method type has two phases:
- Initiate the process and send the magic link - this is initiated with the application sign-in or sign-up screens
- Verify the token and return the session and refresh tokens (signed-in user)
Use Cases
- Sign up a new user
- Sign in an existing user
- Sign in with auto sign-up a new user if not exists
- Update user's email address
- Update user's phone number
Examples
Example - sign up, over email
- Trigger the sign up process with the Sign-Up endpoint When action complete successfully, a magic link will be generated with a token, and delivered to the user's email.
- When the use clicks on the magic link, call the Verify Magic Link endpoint. When the token is validated, the endpoint will return a signed-in user (session and refresh tokens).
Was this helpful?