supabase / auth-helpers

A collection of framework specific Auth utilities for working with Supabase.
https://supabase.github.io/auth-helpers/
MIT License
902 stars 237 forks source link

Fixing createBrowserClient.ts to not fail accessing cookie properties… #752

Closed activenode closed 6 months ago

activenode commented 6 months ago

… like get/set/remove

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

If you provide {auth: {storage: {storageKey}}} as option it will make the cookies variable undefined and fail.

What is the new behavior?

Doesn't fail anymore and works properly.