@nuxtjs/supabase user and session is missing after page refresh
I am writing a webapp in Nuxt with supabase and prisma. If i am running it with npm run dev , everthing is fine , but If i am running it with npm run dev -- --host 0.0.0.0 to be able to watch it on phone but after login if i am refreshing the page the user and the session will be null. I am using the nuxtjs/supabase module.
15 Replies
Same here. Do u have a solution by now?
Now I am hosting it on vercel (you can do it for free, its great for testing) and there is no problem after refreshing the page.
but with the same configuration?
Yeah
bec I think u have to change some things like base url? (never worked with vercel xD)
It will make a vercel link and you can open it from your phone to see how its looking
WAIIIIITTTT
NO WAY
I got it working xDDD
How?
bec the problem lies with the saving of the cookie
thats what I figuerd out
Yeah probably
and this seems to be an problem when using http
If u need a developer just let me know🙂
sure xD or if I have more questions xD
If u looking for sending emails with Nuxt , I recommend Resend