You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
I suspected that the flakiness was caused by this codeblock.
I have added a webhook to synchronize user metadata with the database instead, since then, I have not encountered any more missing userId/sessionId errors or issues with signOut() not firing.
Preliminary Checks
Reproduction
https://github.com/lovincyrus/coolection/blob/cyrus/clerk-auth-bug/app/components/header.tsx
Publishable key
pk_test_bmF0aW9uYWwtZ3JpZmZvbi00Ny5jbGVyay5hY2NvdW50cy5kZXYk
Description
Recording: https://www.loom.com/share/9c23de08c8264ed5bb5d51b5f89d9e7a
Steps to reproduce:
Expected behavior:
The custom sign out button should always fire the
signOut()
and sign out the current user when clicked.Actual behavior:
The custom sign out button isn't being fired because the userId / sessionId isn't available yet.
Environment
The text was updated successfully, but these errors were encountered: