N
Nuxt5mo ago
hz2222

@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
Artus
Artus2mo ago
Same here. Do u have a solution by now?
hz2222
hz2222OP2mo ago
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.
Artus
Artus2mo ago
but with the same configuration?
hz2222
hz2222OP2mo ago
Yeah
Artus
Artus2mo ago
bec I think u have to change some things like base url? (never worked with vercel xD)
hz2222
hz2222OP2mo ago
It will make a vercel link and you can open it from your phone to see how its looking
Artus
Artus2mo ago
WAIIIIITTTT NO WAY I got it working xDDD
Artus
Artus2mo ago
No description
hz2222
hz2222OP2mo ago
How?
Artus
Artus2mo ago
bec the problem lies with the saving of the cookie thats what I figuerd out
hz2222
hz2222OP2mo ago
Yeah probably
Artus
Artus2mo ago
and this seems to be an problem when using http
hz2222
hz2222OP2mo ago
If u need a developer just let me know🙂
Artus
Artus2mo ago
sure xD or if I have more questions xD
hz2222
hz2222OP2mo ago
If u looking for sending emails with Nuxt , I recommend Resend

Did you find this page helpful?