© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Hink

Confusion when combining createServerSupabaseClient and clientside auth helpers (Next.js).

Just want to clear up some confusion that I have. I am using createServerSupabaseClient at the bottom of a component to fetch data with getServerSideProps... then I'm using useSession and useSupabaseClient to listen for session changes with useEffect at the top, (redirecting with router.push if no session.) Am I jacked up here? Thanks -Jake
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

JS Auth helpers and Next.js integration production-ready?
SupabaseSSupabase / help-and-questions
4y ago
Next.js getServerSideProps broken after supabase.js 2.0 and auth helpers update
SupabaseSSupabase / help-and-questions
4y ago
Auth helpers
SupabaseSSupabase / help-and-questions
3y ago
Supabase auth next.js
SupabaseSSupabase / help-and-questions
4y ago