Skip to main content
Use your existing refresh token to obtain a new access token and a replacement refresh token. This lets you keep users authenticated without requiring them to log in again.

Request

POST /auth/refresh
string
required
The refresh token issued during login or the previous token rotation.

Response

string
The newly issued JWT access token.
string
A new refresh token to use in future rotation requests. Replace the token you previously stored with this one.
string
Always "Bearer".
number
Number of seconds until the new access token expires.
string
The display name of the authenticated user.
string
The effective role associated with this token pair.
number
The numeric ID of the authenticated user.

Example

Each refresh token can only be used once. After a successful rotation, the old refreshToken is immediately invalidated. Always save the new refreshToken from the response before discarding the previous one.

Error codes