ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข9mo agoโ€ข
17 replies
Johannes Mario

What's the recommended way of fetching or passing Supabase Auth state to Next client components now?

Auth helpers (which had a nice client-side hook for fetching data) is now deprecated, and the new package
ssr
ssr
only helps you with server-side auth fetching. What if I have a lot of client components, and want to keep my auth state up to date in a client component?
Should I...
- Use auth helpers (even though it's deprecated and unmaintained).
- Manually create a context provider and pass it server-side auth data, then use that provider in client components
- Something else?

I'm a bit frustrated that there is no official guidance or support for this.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase auth recommended listeners?
SupabaseSSupabase / help-and-questions
14mo ago
Supabase auth next.js
SupabaseSSupabase / help-and-questions
4y ago
Supabase client not building or passing correctly in build
SupabaseSSupabase / help-and-questions
3y ago
What's the best way to migrate hosted Supabase to self-hosted Supabase?
SupabaseSSupabase / help-and-questions
4y ago