[ConvexAuth] Convex 1.14 seems to break ConvexAuthProvider token storage
Just had a issue where tokens weren't picked up by ConvexAuthProvider, after upgrading to Convex 1.14, going back to 1.13.2 fixed the issue, and saved jwt tokens were loaded as expected.
Let me know if more info is needed
3 Replies
I cannot repro. Can you try again and see if you get any errors?
Yeah sure i'll give it a go
Still happening. I'll try and troubleshoot some more later, and report back. In case i don't find some cause, ill make a repro and send it ur way.
Im unsure why switching back to 1.13.2 fixes the issue. But this is the client provider for reference:
I've tried removing / disabling the logging behaviour i have wrapped the secureStorage functionality in. But had no effect on the issue
I failed to add to my original message that this is in react native, with expo secure store.
I have tried the following
Switching back and forth again between
convex 1.13.2
and 1.14.0
, with @convex-dev/auth 0.0.47
and the same issues between the those persists, with the token storage not getting correctly, thus never authenticating the user even though the token is actually there in expo secure store
But now, even after switching back to what worked with convex 1.13.2
a new issue has returned, which i have had previously seemed this ERROR Auth token is not a valid JWT, cannot refetch the token
and i have tried most of the most common things (wiping node_modules & yarn lock) no logic thouching JWT's etc. has been touched, at least to my understanding.
I'm gonna leave this here, and revisit this with a fresh set of eyes tomorrow. It's not a blocking issue, with the error saying the jwt auth token isnt valid luckilyI'm encountering the same error after moving my project to a monorepo with Turborepo
Quick update: Using pnpm instead of yarn fixes the error :fixed: