🗄️Login info has expired (JWT)
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
- Try logging out and logging back in
- Turn on the login library's "auto refresh" feature
- 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
- Database connection failed
Can't reach database server - Table doesn't exist
relation "…" does not exist - Login address mismatch (redirect_uri_mismatch)
Error 400: redirect_uri_mismatch - Blocked by security rules (RLS), so it won't save
new row violates row-level security policy - Tried to save a value that already exists (duplicate)
duplicate key value violates unique constraint - Login app info is wrong (invalid_client)
Error 401: invalid_client - Google login blocked (app not verified, testing mode)
Access blocked: app has not completed the Google verification process - Prisma isn't ready (prisma generate)
@prisma/client did not initialize yet. Please run "prisma generate"