© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
8 replies
floyare

Next.js | Problem with session data inside getServerSideProps

So I have i little problem with getting session data. Because it works normally inside client-side code but not in server-side. Anyone knows how can I get
supabase.auth.getSession()
supabase.auth.getSession()
data inside
getServerSideProps()
getServerSideProps()
?
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

Query data with Next.js
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
Getting user data on dynamic page with Next JS
SupabaseSSupabase / help-and-questions
4y ago
Next Js 16, Data-Access-Layer with auth check
SupabaseSSupabase / help-and-questions
3mo ago