Closed
Description
I don't want to persist the auth session in my project, so in my nuxt.config.ts
I set persistSession: false
. But the auth session still persists and I can retrieve it when I try to get the current user await useSupabaseClient().auth.getUser()
Version
@nuxtjs/supabase:
nuxt:
Steps to reproduce
- Create a new project with the specified dependency versions
- Set your supabase section in
nuxt.config.ts
to
supabase: {
cookieOptions: {
secure: process.env.NODE_ENV === "production",
},
clientOptions: {
auth: {
persistSession: false,
},
},
}
- Sign in
- close the website
- re-open the website
- Check for authentication status
What is Expected?
The authentication state is clear and no session or user currently exists/authenticated
What is actually happening?
The previously signed in user is authenticated and can be retrieved from the supabase client.