Prerequisites
- Valid JWT token (even if close to expiration)
- Active authenticated session
Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
token | string | New JWT access token |
expiresAt | string | ISO 8601 timestamp when the new token expires |
wallet | object | Wallet information associated with the token |
Error Responses
| Status Code | Description |
|---|---|
| 401 | Unauthorized - invalid or missing JWT token |
| 500 | Internal server error |
Usage Notes
- Use this endpoint to obtain a new JWT token before the current one expires
- The new token will have an extended expiration time
- The old token becomes invalid after successful refresh
- Store the new token and expiration time for future API requests
- This is more efficient than requiring the user to log in again