I am using Nuxt 3 and trying to connect Supabase OAuth. I can log in with GitHub and Google, but after that, it just redirects me to the /confirm page without showing that the user is logged in. Can someone please help? I've spent almost a week on this without any success.
nuxt.config.ts
supabase: {
url: process.env.SUPABASE_URL,
key: process.env.SUPABASE_KEY,
redirect: true,
redirectOptions: {
login: '/login',
callback: '/confirm',
cookieRedirect: true,
include: ['/test/supabase/test'],
},
cookieOptions: {
maxAge: 60 * 60 * 8,
sameSite: 'lax',
secure: false,
httpOnly: true,
watch: true,
},
clientOptions: {
auth: {
flowType: 'pkce',
persistSession: true,
},
},
```