© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
5 replies
darrensill

User object null after google sign in

auth🟡javascript
Hi Everyone, new here so hope I manage to follow the rules correctly.

I'm hoping someone can help with an odd situation I'm having.

I've set up a NextJS 16 web app and am attempting to configure the google auth provider.

I've followed the guides below
https://supabase.com/docs/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=nextjs
https://supabase.com/docs/guides/auth/social-login/auth-google?queryGroups=environment&environment=client&queryGroups=framework&framework=nextjs

I am stuck in a loop where I can see the auth redirect callback being called, I can log the cookies being set in 'setAll' inside the proxy, but when it comes to the page (both server and client fetch) the user is null. Even in the proxy the user is null and it redirects back to the login page.
If I remove the redirect from the proxy the main page has a null user object and simply displays you are not logged in. In the devtools -> application -> cookies I see only one cookie for auth-token-verifier, none for the actual tokens, even though the logs show them being passed into the 'setAll' method.

All relevant files below, I hope someone might be able to spot something obvious I am doing wrong.
Creating a Supabase client for SSR | Supabase Docs
Configure your Supabase client to use cookies
Creating a Supabase client for SSR | Supabase Docs
Login with Google | Supabase Docs
Use Sign in with Google on the web, in native apps or with Chrome extensions
Login with Google | Supabase Docs
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Google Sign-In Outdated
SupabaseSSupabase / help-and-questions
3y ago
GCP OAuth Google Sign-In
SupabaseSSupabase / help-and-questions
4y ago
Converting anonymous user into permanent user using Google or apple sign in.
SupabaseSSupabase / help-and-questions
13mo ago
E-mail sign in vs Magic link - the user object
SupabaseSSupabase / help-and-questions
6mo ago