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
When using createBrowserClient, typescript shows me a deprecation warning due to it not having the getAll and setAll methods as discussed in https://github.com/orgs/supabase/discussions/27037, however this is only required for server clients since the browser client works with the document.cookie API by default.
note that adding an empty object as the third argument also seems to remove this warning.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
In a typescript file, simply call createBrowserClient without the third options argument:
harrisrobin
changed the title
createBrowserClient is incorrectly marked as deprecated in 0.4.0-rc.3
createBrowserClient is incorrectly marked as deprecated when no options object is passed in 0.4.0-rc.3
Jun 13, 2024
Bug report
Describe the bug
When using
createBrowserClient
, typescript shows me a deprecation warning due to it not having thegetAll
andsetAll
methods as discussed in https://github.com/orgs/supabase/discussions/27037, however this is only required for server clients since the browser client works with the document.cookie API by default.note that adding an empty object as the third argument also seems to remove this warning.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
In a typescript file, simply call
createBrowserClient
without the third options argument:Expected behavior
It should not show me a deprecated warning if i don't pass it an options object.
Screenshots
The text was updated successfully, but these errors were encountered: