The OAuth 2.0 Token Endpoint
POST/oauth2/token
Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/
This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.
SDK ReferenceTypeScript
oauth2TokenExchange()| Parameters | Type | Required | Description |
|---|---|---|---|
| grantType | string | required | |
| clientId | string | optional | |
| code | string | optional | |
| redirectUri | string | optional | |
| refreshToken | string | optional |
| Variable | Type |
|---|---|
| data | OAuth2TokenExchange |