Implement Email Magic Links
- Discovery flow
- Organization flow
The Discovery flow is designed for centralized login pages where users authenticate before selecting which Organization to access.
Send the Magic Link
Send a magic link to the user’s email address:Parameters:
email_address: The user’s email addressdiscovery_redirect_url: Where to redirect after clicking the magic link
Authenticate the Magic Link
When the user clicks the link, they’ll be redirected to your Response:
discovery_redirect_url with a token query parameter. Exchange this token for session information:The Discovery flow returns an
intermediate_session_token which must be exchanged for a full session after the user selects their organization.