provider B2B Impersonation POST
/v1/b2b/impersonation/authenticate @utdk/stytch
/v1/b2b/impersonation/authenticate Authenticate
Authenticate an impersonation token to impersonate a Member. This endpoint requires an impersonation token that is not expired or previously used.
A Stytch session will be created for the impersonated member with a 60 minute duration. Impersonated sessions cannot be extended.
Prior to this step, you can generate an impersonation token by visiting the Stytch Dashboard, viewing a member, and clicking the `Impersonate Member` button.
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.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiB2bImpersonationV1Authenticate()