Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[supabase/ssr] Missing hooks for useSupabaseClient, useUser, useSession #744

Open
2 tasks done
bombillazo opened this issue Feb 15, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@bombillazo
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

The documentation recommends that we migrate away from the old auth-helpers lib in favor of the ssr library, but the library is still missing essential hooks for fetching the client and user auth data.

To Reproduce

N/A

Expected behavior

To replace auth-helpers with ssr the hooks available before would be available also in the ssr package.

System information

  • Version of supabase-js: 2.39.3

Additional context

Add any other context about the problem here.

@bombillazo bombillazo added the bug Something isn't working label Feb 15, 2024
@silentworks
Copy link
Contributor

Can you please provide an example of what these hooks look like? there were never any useSupabaseClient, useUser, useSession hooks in the @supabase/auth-helpers-nextjs library at all, these were only available in the @supabase/auth-helpers-react library which you should still be able to use with the @supabase/ssr library.

@bombillazo
Copy link
Author

Hey, I never said they were part of @supabase/auth-helpers-nextjs, we use them from @supabase/auth-helpers-react. Nevertheless, the docs state we should move from auth-helpers in general:

image

Hence, this issue since the ssr lib does not provide the hooks that we get from @supabase/auth-helpers-react. Perhaps it's the docs that should be updated if these hooks are not intended to be part of the SSR package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants