supabase / ssr

Supabase clients for use in server-side rendering frameworks.
MIT License
54 stars 6 forks source link

Inconsistent `storageKey` usage. #19

Open activenode opened 2 months ago

activenode commented 2 months ago

Chore

Describe the chore

Currently, the only way to set the storageKey is using options.cookieOptions.name. However, for people working with both libraries, this can come confusing, although targeting the same thing in the end.

So I'm asking to have options.auth.storageKey support in this library officially.

Additional context

Current version: https://github.com/supabase/ssr/blob/main/src/createBrowserClient.ts#L147-L148