Open gitgetgotgotten opened 1 year ago
I'm encountering the same problem. I attempted to include my email as a tester for the project within the Google Cloud Console, but unfortunately, the issue persists.
It seems it is because we are in a restricted country and Google doesn't allow specific countries to use its specific services like this one. I'm saying this because it doesn't work either when I use googleapis
and it returns 403, however, when I use a proxy, it will work. I wonder if there would be an approach to set a proxy in next-auth, that would be perfect.
Environment
System: OS: Windows 10 10.0.19045 CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz Memory: 18.46 GB / 31.92 GB Binaries: Node: 16.16.0 - C:\Program Files\nodejs\node.EXE npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD Browsers: Firefox: 115.0.3.8607
Reproduction URL
https://github.com/nextauthjs/next-auth-example
Describe the issue
I just cloned the
next-auth-example
, rannpm install
, andcp .env.local.example .env.local
. And then modified.env.local
and changedGOOGLE_ID
andGOOGLE_SECRET
to what I got from google console. And finally rannpm run dev
and openedhttp://localhost:3000/api/auth/signin?callbackUrl=%2Fme
in my browser and clicked onSign in with Google
, logged in and it redirected tohttp://localhost:3000/api/auth/signin?error=OAuthCallback
with the messageTry signing in with a different account
.And in console it returned:
How to reproduce
Just clone the
https://github.com/nextauthjs/next-auth-example
and set the provider's id and secret,npm install
,npm run dev
, and simply login with Gmail, it will reproduce in my case.Expected behavior
To login successfully login to to my local site and get the session.