Refresh access and refresh tokens.
Validates the provided refresh token, issues new tokens, and invalidates the old refresh token (token rotation).
Flow:
cURL
curl --request POST \ --url https://api.example.com/api/v1/auth/refresh \ --header 'Content-Type: application/json' \ --data ' { "refresh_token": "<string>" } '
{ "token": "<string>", "refresh_token": "<string>", "expires_in": 123 }
Request body for token refresh.
JWT refresh token
1
Successful Response
Response for successful token refresh.
New JWT access token
New JWT refresh token
Access token expiration time in seconds