supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Auth session is not persistent

Open bart opened this issue 11 months ago • 35 comments

Version

@nuxtjs/supabase: ^1.0.2 nuxt: ^3.7.1

Reproduction Link

https://github.com/bart/test-supabase

Steps to reproduce

  1. Add SUPABASE_URL and SUPABASE_KEY to your .env file
  2. npm run dev
  3. localhost:3000 should redirect you to the login page. Enter username and password and click Login button
  4. You should be redirected to /
  5. 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.

bart avatar Sep 06 '23 11:09 bart