Closed bombillazo closed 1 month ago
What is the point to use both libraries? Official documentation says that you should use only one or another, not both.
@kvetoslavnovak The post clearly says why, supabase/ssr
does not have the useSession
, useUser
hooks
closing, no longer popping up
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