Exchange grant for access token
Changed onOAuth 2.0 token endpoint supporting three grant types: authorization_code (standard OAuth flow with Basic auth), urn:ietf:params:oauth:grant-type:device_code (RFC 8628 device authorization for CLI clients), and refresh_token (rotate refresh token and obtain a new access token). The device_code and refresh_token grants authenticate via the privy-app-id header.
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/api/oauth/v2/token
- Authnone declared
Headers
ID of your Privy app.
Request body
Response
Token issued successfully.
Changes
- breaking
the
response's property type changed fromstringto no type for status - info
added
subschema #2to theresponse propertyallOflist for the response status - info
removed the
access_deniedenum value from theresponse property for the response status - info
removed the
authorization_pendingenum value from theresponse property for the response status - info
removed the
expired_tokenenum value from theresponse property for the response status - info
removed the
slow_downenum value from theresponse property for the response status
- breaking
- info
endpoint added
- info