VibeDict

🗄️Login info has expired (JWT)

What you'll see
AuthApiError: invalid JWT: unable to parse or verify signature, token has invalid claims: token is expired

The pass (token) you got when you logged in is past its expiry time.

🤔 Why does it happen?

  • A request was made again from a screen that was left open for a long time
  • There's no handling to get a new token automatically
  • The server's clock and your computer's clock are far apart

🔧 Try this

  1. Try logging out and logging back in
  2. Turn on the login library's "auto refresh" feature
  3. When it expires, guide the user to the login screen

🤖 Ask your AI like this

After some time logged in, I get a 'JWT expired' error. Please make the token refresh automatically, and when it can't refresh, guide the user smoothly to the login screen.

Replace the [ ] parts with your own situation, and paste the error with a few extra lines before and after it.

Related terms

Other errors in this group