Refresh Token
API endpoint for refreshing authentication tokens
Refresh Token API
This endpoint allows customers to obtain a new access token using their refresh token when the original access token expires.
Token Refresh Flow
The token refresh process follows these steps:
- Client detects that the access token has expired
- Client submits a request with their refresh token
- Server validates the refresh token
- If valid, server issues a new access token (and optionally a new refresh token)
- Client updates stored tokens
Request Example
Response Example
Error Codes
Code | Description |
---|---|
401 | Invalid refresh token |
403 | Refresh token expired or revoked |
Security Considerations
- Refresh tokens should have a longer lifetime than access tokens
- Consider implementing refresh token rotation for enhanced security
- Store refresh tokens securely (HttpOnly cookies or secure storage)