Exchange OAuth authorization code
Changed onAtomically consumes a short-lived callback code and returns the user's session. The request must use the same project anon key and exact redirect_url that initiated the flow.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Headers
Trusted server-side auth proxy credential in Bearer SERVICE_KEY form. When supplied, X-Volcano-Client-IP is also required. The service key must belong to the anon key's project and hold this operation's scope: auth.signup for signup and anonymous signup, auth.signin for signin and OAuth code exchange, auth.refresh for refresh, auth.logout for logout, and auth.password_reset for forgot-password and reset-password. The password policy accepts any service key for the project. Never expose a service key to browser code.
Original browser IPv4 or IPv6 address supplied by a trusted server-side auth proxy. The proxy must derive this value from its platform-verified request metadata, never from a browser-supplied header. Requires a valid X-Volcano-Proxy-Authorization header.
Request body
Response
Authorization code consumed and session created
JWT access token (expires after configured lifetime)
Access token lifetime in seconds
Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.
Example response
{
"token_type": "bearer"
}Changes
- info
added the new optional
headerrequest parameterX-Volcano-Client-IP - info
added the new optional
headerrequest parameterX-Volcano-Proxy-Authorization
- info
- breaking
the response's body type changed from no type to
objectfor status
5 more changes in this revision
- breaking