lexcodeit
lexcodeit•3mo ago

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
Convex Bot
Convex Bot•3mo ago
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!
lexcodeit
lexcodeitOP•3mo ago
Yeah. Its definitely related. But no solution on that end too.
lexcodeit
lexcodeitOP•3mo ago
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.
No description
lexcodeit
lexcodeitOP•3mo ago
Please, I really need help to fix this. Its hindering all progress to the project I'm working on.
No description
erquhart
erquhart•3mo ago
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
lexcodeit
lexcodeitOP•3mo ago
I had to do that and clear cookies on my browser. But I want a better solution for end users.
erquhart
erquhart•3mo ago
Oh absolutely, just wanted to make sure you were unblocked
sshader
sshader•3mo ago
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
lexcodeit
lexcodeitOP•3mo ago
Thanks 💯

Did you find this page helpful?