Refresh Token
Authentication
Refresh Token
Obtain a new access token using a refresh token
POST
Refresh Token
Description
Exchanges a valid refresh token for a new access token and refresh token pair. The old refresh token is automatically revoked as part of the token rotation security mechanism. The service implements automatic token rotation and detects token reuse attacks. If a revoked token is presented, all tokens in that family are revoked for security.Authentication
No authentication required (uses refresh token in request body).Request Body
Valid refresh token obtained from a previous login or refresh operation.
Response
New JWT access token for authenticating subsequent requests. Typically expires in 15 minutes.
New refresh token to replace the old one. Typically expires in 7 days.
ISO 8601 timestamp indicating when the access token expires.
User information object containing:
Id(guid): Unique user identifierUsername(string): The usernameEmail(string): The user’s email addressCreatedAt(datetime): Account creation timestamp
Status Codes
- 200 OK: Successfully refreshed tokens
- 401 Unauthorized: Invalid, expired, or revoked refresh token
Example Request
cURL
Example Response
200 OK
401 Unauthorized
401 Token Expired
Security Notes
- The old refresh token is automatically revoked and cannot be reused
- Token reuse detection: If a revoked token is presented, all descendant tokens are revoked
- Tokens older than 30 days are automatically cleaned up