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 malformed, signed for another project, or not a token.
What to do
Fetch a new token from your auth endpoint (or sign in anonymously again with the publishable key).
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_invalid",
"detail": "A sentence that is safe to show.",
"next": "Fetch a new token from your auth endpoint (or sign in anonymously again with the publishable key).",
"docsUrl": "https://lobbylab.gg/docs/errors/token_invalid"
}
See also: every error code, the API reference and the docs.