I deployed a Nuxt 3 app which uses Supabase for authentication to Netlify. On the local development server, authentication works as intended and the cookies are being set. However, on the deployed site, Netlify doesn’t set and persist the authentication cookie on the front-end.
I don’t know if I’m missing something here but any assistance provided would be greatly appreciated. Thank you!
No, Netlify doesn’t set the cookies from the authentication with Supabase. That is the responsibility of your app/script.
Without knowing the domain in question, and having information about how the app is setting (or is trying to set) cookies, it does make it difficult to offer any assistance.
The domain of my app is here:
Here’s the GitHub repository:
Looking through the codebase, I cannot see anywhere you are setting a cookie. I see you are reading the
set-cookie header in
fetchWithCookie.js and setting a persisted state.