You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the CRUD functions for the cookies option doesn't seem to be doing anything. The functions never get called.
To Reproduce
In this code I posted you can see that I've simply added console.logs to the setter/getter/remover. Yet the console never logs any of those messages. I should also note that I'm using a custom storage handler in the auth option. I should also say that I know that the Supabase client uses the auth storage to store cookies. Which then begs the question: why do we have a separate cookie CRUD object if it's not being used? Currently TypeScript says that this property is required, which seems redundant considering that the client is using the storage defined in auth to manage cookies, and considering that the getters/setters never get called anyway. I'd expect at the very least for the cookies property not to be required.
Expected behavior
I'd expect for either:
a) the cookies functions to be called
b) the cookies property to be optional
Screenshots
See screenshot of my Supabase config above.
System information
OS: Windows 10
Browser: Chrome
Version of supabase-js: 2.39.3
Version of supabase/ssr: 0.0.10
Version of Node.js: 20.8.0
Additional context
I'm moving away from supabase/ssr because I found out that it only uses cookies for storing the session and doesn't offer any alternatives, which won't work for me because I'm writing an app with React Native, which doesn't support cookies. But just thought I'd share this small bug with you.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Setting the CRUD functions for the
cookies
option doesn't seem to be doing anything. The functions never get called.To Reproduce
In this code I posted you can see that I've simply added
console.log
s to the setter/getter/remover. Yet the console never logs any of those messages. I should also note that I'm using a custom storage handler in theauth
option. I should also say that I know that the Supabase client uses the auth storage to store cookies. Which then begs the question: why do we have a separatecookie
CRUD object if it's not being used? Currently TypeScript says that this property is required, which seems redundant considering that the client is using the storage defined inauth
to manage cookies, and considering that the getters/setters never get called anyway. I'd expect at the very least for thecookies
property not to be required.Expected behavior
I'd expect for either:
a) the
cookies
functions to be calledb) the
cookies
property to be optionalScreenshots
See screenshot of my Supabase config above.
System information
Additional context
I'm moving away from supabase/ssr because I found out that it only uses cookies for storing the session and doesn't offer any alternatives, which won't work for me because I'm writing an app with React Native, which doesn't support cookies. But just thought I'd share this small bug with you.
The text was updated successfully, but these errors were encountered: