PerfectP
Convex Community7mo ago
34 replies
Perfect

Authenticated Wrapper Component Not Updating

My sign up and sign in pages are server components that use the auth() method of clerk to check if user is authenticated. If they are already authenticated, they will be redirected to the dashboard.

If I have two tabs open on the sign in page, log in on one of the tabs, switch back to the other tab, get redirected to dashboard, but see no updated auth state. The dashboard is still rendering the <Unauthenticated/> content.

I would expect the auth state on the client to update after being redirected. Am I misunderstanding how this should be handled?

See video below, thank you!
Was this page helpful?