supabase / supabase-js

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
https://supabase.com
MIT License
3.26k stars 270 forks source link

Cookies not being set after loginWIthEmailAndPassword #1140

Open ahosny752 opened 5 months ago

ahosny752 commented 5 months ago

Bug report

Describe the bug

The issue is with signingWIthEmaillPassword, its intermittent. Sometimes the cookie is not set and therefore the other calls fail due to no uuid

To Reproduce

login, cookie set, SignOut, login , SignOut, Login, no cookie set

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

Additional context

Add any other context about the problem here.

juliangorge commented 1 month ago

hello! did you solve it?

Ludevsoftware commented 4 weeks ago

I’m experiencing the same issue. The login is authorized, but after the user is redirected to the home page and I try to fetch user details using auth.getUser, it doesn't return any information about the logged-in user. If you log into another account, sign out, and then log in with a different account, auth.getUser still returns information from the previous account. Any solution for this?