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