Skip to content

Convex auth gets out of sync #14

@jedimonkey

Description

@jedimonkey

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:

Image

Very frustrating error, happy to troubleshoot to find a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions