OAuth 2.1
Token
Exchange authorization code or refresh token.
POST
Accepts
Errors use OAuth JSON:
application/x-www-form-urlencoded or application/json.
Authorization code grant
| Field | Required |
|---|---|
grant_type=authorization_code | ✓ |
code | ✓ |
client_id | ✓ |
code_verifier | ✓ |
redirect_uri | if used at authorize |
client_secret | confidential clients |
Refresh token grant
| Field | Required |
|---|---|
grant_type=refresh_token | ✓ |
refresh_token | ✓ |
client_id | ✓ |
client_secret | confidential clients |
Response
{ "error", "error_description" }.
