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:
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