E.g. Register or sign in example
redirect_urls
you whitelisted with us.
LoginOrCreateUserViaMagicLink
, if a user is found with the provided email, it will be returned and magic link email sent out, otherwise, a new user will be created on the fly (aka JIT, Just in time).
ApiKey
magic_link
they can click on (the magic_link
has the redirect_url
you specified combined with the magic_token
. This will then redirect the user to your app with the token
in the Query parameters. A sample link is shown below,
ApiKey
with VerifyMagicLink
endpoint.
user_id
of the user who owns the token (example response below)
user_id
with your users in your app, you are now done and you can safely authenticate the user!
However, if you have not previously attached the user_id
to your users table for example, you can also use our GetIdentityUser
endpoint to retrieve the emails
and phone_numbers
attached to the user using the user_id
returned by VerifyMagicLink
endpoint.