© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
2 replies
bigHeha

Google auth works fine in eastern europe but auth callback fails in US

🟢SSRauthSolved
My project uses next.js and has google auth setup. On vercel staging environment, the google auth works fine for me but errors for another person. Im not sure what could cause an error like that, environment variables for staging envrionment should be set correctly since it works fine for me. What might cause this issue?

The following error is present in logs:

[Callback] Error details: {
message: 'invalid request: both auth code and code verifier should be non-empty',
status: 400,
name: 'AuthApiError'
}

my auth/callback route is mostly a copy of one that was provided in the docs: https://supabase.com/docs/guides/auth/social-login/auth-google?queryGroups=framework&framework=nextjs#application-code
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

google log in for iphone (pc and android just works fine)
SupabaseSSupabase / help-and-questions
6mo ago
signInWithPassword does not sign in in v2, but signin in v1 works fine
SupabaseSSupabase / help-and-questions
4y ago
deno function - smtp - works locally but fails remote
SupabaseSSupabase / help-and-questions
4y ago
Google auth in react native
SupabaseSSupabase / help-and-questions
3w ago