API resources
API Reference
Use the Send Discovery Email API to start a magic link login flow.
Frontend SDKs
Use the Magic Link SDKs to start a magic link login flow.
Stytch UI
Use Stytch’s pre-built UI components to seamlessly add email magic links to your login flow.
How it Works
Email magic links are a secure, seamless, passwordless authentication option. When a user logs in via Stytch’s Email Magic Link (EML) product, Stytch generates a unique, one-time-use token embedded in a URL and sends it to the user’s email address. The user authenticates their identity by successfully receiving and clicking on this link before the link expires, at which point Stytch will either issue a Session or prompt the user to perform MFA if they are enrolled. Stytch also uses magic links in our flow for inviting new Members to an existing Organization, allowing the end user to accept the invite and authenticate into the target Organization in one step.Discovery vs. Organization-specific login
Stytch’s Multi-Tenant Authentication product supports two different magic link authentication flows:Organization-specific authentication
Used when you already know the that the end user is trying to log into.
Discovery authentication
Used for self-serve Organization creation or login prior to knowing the Organization context.
Email template customization
Email templates control the subject line and body of the email a Member receives. For Magic Link endpoints that send emails, there are three possible email templates a Member can receive: login, signup or invite. Which email template a Member receives is based on a combination of the members’s state (e.g.active, pending) in the Stytch backend and whether the magic link is initiated via a discovery authentication, organization-specific authentication or invite method.
Styling customizations like color and font are available by default, while full HTML customization is available to customers paying for our branding add-on.