B2B Discovery Intermediate Session Exchange
A 2-step recipe with Stytch. We can help you get access.
Recipe · 2 steps
B2B Discovery Intermediate Session Exchange
with Stytch · Identity & Access Management
Authenticate discovery link, then exchange the intermediate session into an organization.
- Authenticate the discovery magic link token to obtain an intermediate session token and the organizations the email already belongs to.
- Exchange the intermediate session token into the chosen organization to mint a full member session.
What you'll need to have ready
- discovery_magic_links_token: The discovery magic link token captured from the clicked link.
- organization_id: The id of the discovered organization to exchange into.
- session_duration_minutes: Optional session lifetime in minutes for the resulting member session.
For your developer
Arazzo workflow stytch:discovery-intermediate-exchange, 2 operations: api_b2b_magic_v1_b2b_magic_links_discovery_Authenticate → api_discovery_v1_discovery_intermediate_sessions_Exchange. Specs on APIs.io.