Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR not correctly storing session between pages after successful login #84

Open
2 tasks done
Cocolin67 opened this issue Dec 18, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Cocolin67
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

When a user logs in on my application, data correctly sends out data.user and data.sesssion. However, after switching pages, data.session changes to NULL. I tried all methods, asked the supabot assistant for help, changed cookies options and still doesn't store well... I'm hoping this is a bug because I'm struggling hard X)

To Reproduce

On a NextJS 15 application, with Pages Router, install SSR by following the official guide for setting up SSR with Auth on the official Supabase website. Now, log on to an account and log the data.session between pages. After the initial login, you should get all data (data.user and data.session) and after that, data.user should still be stored and data.session should be empty.

Expected behavior

Data.session should store between pages and actions.

System information

  • OS: Windows 11
  • Browser: Firefox
  • "@supabase/supabase-js": "^2.47.8"
  • Node version : v21.6.2
@Cocolin67 Cocolin67 added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant