provider Session POST
/v1/sessions/exchange_access_token @utdk/stytch
/v1/sessions/exchange_access_token Exchangeaccesstoken
Use this endpoint to exchange a Connected Apps Access Token back into a Stytch Session for the underlying User.
This session can be used with the Stytch SDKs and APIs.
The Access Token must contain the `full_access` scope (only available to First Party clients) and must not be more than 5 minutes old. Access Tokens may only be exchanged a single time.
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.apiSessionV1Exchangeaccesstoken()