Open Wafje opened 1 year ago
Can you advice us how to resolve this? I would also prefer to use Generate, and deploy to Netlify. But this auth issue is the only thing I'm bumping in to.
I ended up writing my own plugin and composable based on the information in this blog post: https://dev.to/aaronksaunders/how-to-build-a-nuxt-3-ionic-capacitor-starter-app-supabase-setup-and-authentication-3gd0
@Wafje , did you complete remove the nuxt supabase module, or are you using your own plugin next to nuxtjs/supabase?
I removed the nuxjs/supabase module. I reviewed the source code and it seemed to be focussed on using SSR. I am not using SSR in my project so decided to drop the module.
I ended up writing my own plugin and composable based on the information in this blog post: https://dev.to/aaronksaunders/how-to-build-a-nuxt-3-ionic-capacitor-starter-app-supabase-setup-and-authentication-3gd0
Works great, however is there not a solution to the nuxt plugin so it isnt focused on SSR?
I'm also interested in a supabase module that is working with a static build (generate). I don't really understand why the current supabase module need a server side API. Supabase javascript package can operate without a custom backend so why this module don't ?
Version
@nuxtjs/supabase: 0.3.0 nuxt: 3.0.0
Reproduction Link
login.vue
Steps to reproduce
What is Expected?
nagivation to /
What is actually happening?
console:
seems like useSupabaseUser().value is not updating. cookies and jwt are correctly stored though
Research
await setServerSession(event, session)
from https://github.com/nuxt-modules/supabase/blob/c5b4a48c8b155580b77858ad6f3ad0c6af5ac2c0/src/runtime/plugins/supabase.client.ts#L30