© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
AvPirate

google auth - supabase-ui is a must to get user data?

Stack: Next.js 12

After I use a google auth provider to sign in, I can't find any way to get the user data. I've tried:
supabase.auth.currentSession user

Is the problem with next.js, something about ssr and not csr? I've tried to use csr but maybe i did it wrong.

It seems like supabase/ui has an "Auth" obj which you can use like this:
const { user } = Auth.useUser()
Is this the only way? I don't wanna install a whole new UI library just for that
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

get user function supabase.auth.user()
SupabaseSSupabase / help-and-questions
4y ago
supabase google auth wont get cookies
SupabaseSSupabase / help-and-questions
8mo ago
Supabase Auth UI
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth UI provider warning
SupabaseSSupabase / help-and-questions
4y ago