supabase / auth-helpers

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

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

Closed activenode closed 8 months ago

activenode commented 8 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.