FluxyChat

Error codes

40101 invalid_token

Session token is not valid

40101 — invalid_token

The token string is malformed, or it is signed with the wrong secret. Terminal.

At a glance — HTTP 401 · close 1008 invalid_token · terminal · SDK FluxyTokenExpiredError (the SDK folds invalid_token into the token-expired path).

What to do

  • Check the JWT is signed with this project's secret and carries tid, sub, and exp — the same claims the Auth / JWT cookbook mints.
  • Re-mint the token; do not patch the string.
  • On the WebSocket you see close 1008 with reason invalid_token.

On this page