#Convex Log Error "auth:store Invalid Refresh Token"

1 messages · Page 1 of 1 (latest)

empty galleon
#

I have used the Convex Documentation & Tutorials / Code. Also use the Github Example Repository.
It seems like it IS working on first page load and the Sign In. But somewhere in the Convex Backend code I lose the user.
I have been stuck on this for 3 days. Looks like I have to go into the Convex Auth Package code to debug/fix - or I am missing something?

Here are the related files, Convex Logs and Broswer Console Logs.

solar palmBOT
#

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!

empty galleon
#

Au, Here is improved logging (client enabled)

#

This looks like an issue within the auth manager having to do with Token Versions (V1 & V2)?

crisp pivot
#

What version of Convex Auth are you using / can you try upgrading to the latest? There are some issues we've been trying to fix specifically around Next.js App Router with SSA (not sure if you're doing that or another Next.js setup)

empty galleon
#
"@auth/core": "^0.35.0",
"@convex-dev/auth": "^0.0.67", "convex": "^1.16.2"
crisp pivot
#

Yeah curious if you have the same issues on @convex-dev/auth 0.0.71 (just to rule out other things).

You can also get slightly more logging from the backend functions here: https://labs.convex.dev/auth/debugging which can sometimes be useful for debugging

empty galleon
#
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!, {
  verbose: process.env.NODE_ENV === 'development',
});

Yeah, i have it enabled now when developing, off for production

#

let me try 0.71

#

You nailed it! Did not realize there was a newer version already.

#

Can mark as solved

#

Cause, Error behind keyboard 🙂