A Multiplayer API error, sent with HTTP 401. Status: the Multiplayer API is in private alpha; this code is part of its published contract.
When
The player token is past its expiry.
What to do
Fetch a new token from your auth endpoint. The SDK does this on its own when you give it authEndpoint or authCallback.
The answer
Every error is a JSON body with a stable error code. Clients act on the codes they know and treat any other code as a failure of its HTTP status, and keep fields they do not know.
{
"error": "token_expired",
"detail": "A sentence that is safe to show.",
"next": "Fetch a new token from your auth endpoint. The SDK does this on its own when you give it `authEndpoint` or `authCallback`.",
"docsUrl": "https://lobbylab.gg/docs/errors/token_expired"
}
See also: every error code, the API reference and the docs.