Using Refresh Token
To obtain a new pair of tokens in case the access token expires or becomes lost, a user sends the HTTP POST request with the refresh token in the request body to the /oauth2/token endpoint. A successfully completed operation returns the 200 response code and a new pair of tokens in the response body.
Tip |
If you lose the refresh token, you can log in again under the same user account and get a new pair of tokens. |
Example
To obtain an access token and a refresh token, a user sends the HTTP POST request to the /oauth2/token endpoint. In the body of the request, the user specifies the following parameters:
The server sends a response in the following format.
|