provider B2B Magic Links POST /v1/b2b/magic_links/discovery/authenticate
@utdk/stytch /v1/b2b/magic_links/discovery/authenticate
Authenticate
Authenticates the Discovery Magic Link token and exchanges it for an Intermediate Session Token. Intermediate Session Tokens can be used for various Discovery login flows and are valid for 10 minutes.

Try it

Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

apiB2bMagicV1B2bMagicLinksDiscoveryAuthenticate
POST/v1/b2b/magic_links/discovery/authenticate
Authenticates the Discovery Magic Link token and exchanges it for an Intermediate Session Token. Intermediate Session Tokens can be used for various Discovery login flows and are valid for 10 minutes.

Input

required

The Discovery Email Magic Link token to authenticate.

A base64url encoded one time secret used to validate that the request starts and ends on the same device.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stytch from '@utdk/stytch';

await stytch.apiB2bMagicV1B2bMagicLinksDiscoveryAuthenticate()