Next.js Discord

Discord Forum

User Auth context doesn't seem to display properly until I reload page via browser after log in

Unanswered
Himalayan posted this in #help-forum
Open in Discord
HimalayanOP
I am unsure how to fix this issue. I can log in just fine on my site, and user auth will display properly, but not unless I reload the page manually first. Otherwise, my auth stuff gets stuck in loading loop.

AuthContext file and part of Navbar that shows profile attached (NavProfile is profile info, NavRight is the component that wraps it to alternatively show login fields if no auth)

0 Replies