Problem code
token_expired
| Status | 401 Unauthorized |
| Type | https://api.librarika.dev.raynux.com/problems/token_expired |
| Title | Token expired |
| Retry | After you get a new access token. |
| Headers | WWW-Authenticate with error="invalid_token" |
What it means
The access token was valid but has expired. Access tokens live 15 minutes by default.
What to do
Refresh it (member tokens) or request a new one with client credentials, then repeat the request. See Tokens.
Example
HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json
X-Request-ID: 01JD8Q3W6Y2N5K7M9P0R4S6T8V
{
"type": "https://api.librarika.dev.raynux.com/problems/token_expired",
"title": "Token expired",
"status": 401,
"code": "token_expired",
"detail": "The access token has expired.",
"request_id": "01JD8Q3W6Y2N5K7M9P0R4S6T8V"
}
The type URI https://api.librarika.dev.raynux.com/problems/token_expired is this page. The detail above is an example of the English text; it is translated into the request's language and may change, so match on code, never on detail.