[ConvexAuth]: ERROR Auth token is not a valid JWT, cannot refetch the token
Hey,
I'm using ConvexAuth in app, and specifically, using the password-code from the convex auth demo repo, i'm able to successfully sign up and verify with my email code.
And also able to login when using the
password-code
provider and flow signIn
But upon being signed in, i get the following error:
ERROR Auth token is not a valid JWT, cannot refetch the token
convex/auth.ts
SignInScreen.tsx
1 Reply
When trying to verify the JWT token that gets stored in SecureStore through the
ConvexAuthProvider
after authentication, with jwt.io debug tool.
I'm getting told it's an invalid signature, looks fine though looking at it:
The payload looks legit though:
Have also attempted generating new JWKS and JWT_PRIVATE_KEY using the generateKeys.mjs script and setting them on the dev deployment
That didn't change anything unfortunately
✅ Removing yarn.lock, and node_modules, did the trick here. Maybe some package related to the JWT verification had a wrong version or something, would be my guess