-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Sometimes convex will get out of sync with workos auth state. The authentication process works all fine, however occassionally during convex deployments or a long life tab convex will cycle, authentication fails and the content is shown. If you reload the page it will reload being logged in.
Have tested with https://workos-convex-nextjs-testbed.previews.convex.dev/ and it failed after a couple of hours. Doesn't seem to be an easy way to reproduce as the issue only occurs randomly.
I have tested that 2 tabs (same site) both simultaneously failed (and reload re-logged back in). When it occurs, I can see a bunch of errors in the convex log as well, so the backend queries are not reading that the user is logged in.
Have tested and you can see the test site in this screenshot is in an inconsistent state:
Very frustrating error, happy to troubleshoot to find a solution.