Google auth works fine in eastern europe but auth callback fails in US
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
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
Use Sign in with Google on the web, in native apps or with Chrome extensions