© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago
aditya

getSession in “use client”

hey im using supabase for a nextjs 14 app that uses supabase for auth and db obv. and i was wondering how i can get supabase auth session info while client side using
"use client"
"use client"
, cus the functions say to use await in async functions but according to the error i get you cant use async functions in client components. i tried putting them in useeffects and didnt work already also.
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

getSession hangs [javascript client library]
SupabaseSSupabase / help-and-questions
3mo ago
Hide warning getSession warning in supabase-js ?
SupabaseSSupabase / help-and-questions
2mo ago
getSession(), safeGetSession(), and getUser()
SupabaseSSupabase / help-and-questions
8mo ago
getSession() is null after login?
SupabaseSSupabase / help-and-questions
3y ago