v1

latestOpenAPI 3.1.02026-08-04156223229.6 KB
auth

Exchange Oauth Token Endpoint

Exchange a Stytch OAuth token for a session token and JWT.

Called by the browser app after Stytch redirects back with ?token=xxx. Intentionally unauthenticated — this endpoint IS the authentication mechanism. The Stytch secret key never leaves the server.

post/auth/oauth/exchange

Request body

tokenstring required

Response

Successful Response

session_tokenstring required
session_jwtstring required
user_idstring nullable required