Error: {"code":"IdTokenExpired","message":"Expired: ID token expired at 2024-09-27 18:40:05 UTC
Please, How do I fix this? I can't reopen the app and I can't logout from my web app. Its really frustrating.
10 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Potentially related: https://discord.com/channels/1019350475847499849/1279823393125961748
Yeah. Its definitely related. But no solution on that end too.
This issue here is that in my middleware
This isAuthenticatedNextjs()) returns true;
This isPublicPage(request)) returns false;
But the refresh token is expired. So I don't know how to handle the logic from here onwards.
Or how to clear the token stored so it doesn't assume I have an active session.
Please, I really need help to fix this. Its hindering all progress to the project I'm working on.
Assuming this is dev, you can just clear out your refresh tokens table. Not sure if that will require clearing out your sessions table too
I had to do that and clear cookies on my browser. But I want a better solution for end users.
Oh absolutely, just wanted to make sure you were unblocked
Assuming this is Next.js with Convex Auth, there have been a bunch of bug fixes so far, so I recommend making sure you're on the latest versions of Convex Auth + Convex here.
Next.js SSA + Convex Auth support is still experimental, and there are likely still bugs that need identifying and fixing
Thanks 💯