Multiple GoTrueClient instances when using supabase/ssr
and @supabase/auth-helpers
#739
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
As recommended by the Supabase docs, we started using the new SSR library to handle our Next.js auth clients int he front end. However, we still need access to the regular auth hooks provided by auth-helpers, such as the
useSession
hook. So we now have both libraries installed at the same time.This causes unexpected issues where the auth tokens suddenly get erased and other weird behavior.
To Reproduce
useSession
and also create an ssr browser clientExpected behavior
No issues with the library
Screenshots
System information
The text was updated successfully, but these errors were encountered: