supabase
supabase copied to clipboard
Auth session is not persistent
Version
@nuxtjs/supabase: ^1.0.2 nuxt: ^3.7.1
Reproduction Link
https://github.com/bart/test-supabase
Steps to reproduce
- Add SUPABASE_URL and SUPABASE_KEY to your .env file
-
npm run dev
-
localhost:3000
should redirect you to the login page. Enter username and password and clickLogin
button - You should be redirected to
/
- Give it a refresh and you are logged out (redirected back to
/login
) again
What is Expected?
Auth session should be persistent. Auth guard should not redirect to login page as long session isn't expired or user does not sign out manually.
What is actually happening?
Auth guard redirects back to login page assuming user isn't logged in.