user being fetched only after browser tabs changed.

after login, the uservalue is shown on the page, but immedietaly gone after refreshing page or changing route. and it's being fetched back again only after browser tabs changed. And if you reload page or go to another route, it'll hide again. You need to change tabs again to show it. It doesn't happen this way on localhost. Only on netlify etc.

The hosted buggy website:
https://luminous-haupia-12c8f2.netlify.app/login

try to login with:
mail: myauthtest23@outlook.com // pass: 123321

or create your own account and login with it.

After login, there should be uservalue written on page if there's a user. So after login, it shows up, but gone after route change or website reload. And, it comes back after tab changes.

I've recorded a vid:
https://www.youtube.com/watch?v=SOTzkS08YIs&ab_channel=Clarity

Here's the repo of this website to reproduce: (no .env included)
https://github.com/Solemensis/supabase-nuxt-login_bug
YouTubeClarity
supabase user being fetched only after browser tabs changed by hand demonstration
GitHub
reproducable supabase nuxt login repo. Contribute to Solemensis/supabase-nuxt-login_bug development by creating an account on GitHub.
Was this page helpful?