deixadilson
deixadilson
I noticed that when we call the supabase login function it creates a session in the local storage and only after a lot of time it creates the cookie session...
Mine is hosted on netlify https://stalwart-marshmallow-429f9d.netlify.app/ This is the repository: https://github.com/JeffValadares/CoEnergie
This also happens on my localhost. The session is set only in local storage and the user is not redirected. Only after a long wait the session is stored in...
> I fixed it by using `useSupabaseAuthClient()` instead of `useSupabaseClient()` to sign in and out. It works! Thank you!
You can try to set the cookie manually with the code below: ``` const { data: response, error } = await supabase.auth.signInWithPassword(formData); const accessToken = useCookie('sb-access-token'); const refreshToken = useCookie('sb-refresh-token');...