B2B Organization Magic Link Login
A 3-step recipe with Stytch. We can help you get access.
Recipe · 3 steps
B2B Organization Magic Link Login
with Stytch · Identity & Access Management
Email an org-scoped magic link, authenticate the token, and validate the session.
- Send a login-or-signup email magic link scoped to the organization so the member can authenticate by clicking through.
- Authenticate the magic link token captured from the clicked link to mint a member session.
- Validate the member session token to confirm the session is active and resolve the member and organization.
What you'll need to have ready
- organization_id: The id of the organization the member is logging into.
- email_address: The member's email address to send the magic link to.
- login_redirect_url: The URL the member is redirected to after clicking the login link.
- signup_redirect_url: Optional URL the member is redirected to after clicking a signup link.
- magic_links_token: The magic link token captured from the clicked link.
- session_duration_minutes: Optional session lifetime in minutes for the member session.
For your developer
Arazzo workflow stytch:magic-link-org-login, 3 operations: api_b2b_magic_v1_b2b_magic_links_email_LoginOrSignup → api_b2b_magic_v1_Authenticate → api_b2b_session_v1_Authenticate. Specs on APIs.io.