You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zhongzhuhua opened this issue
Apr 24, 2024
· 0 comments
Labels
bugSomething isn't workinglegacyRefers to `next-auth` v4. Minimal maintenance.triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
npm run dev
click sign in
click Sign in with Google
Expected behavior
Login should jump to the callback address, and there is ?code=return. Now the callback address prompt is ?error=OAuthSignin
The text was updated successfully, but these errors were encountered:
zhongzhuhua
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Apr 24, 2024
bugSomething isn't workinglegacyRefers to `next-auth` v4. Minimal maintenance.triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Environment
Reproduction URL
https://github.com/HamedBahram/next-auth-demo
Describe the issue
In the above code repository, I modified my GoogleProvider configuration clientId and clientSecret for my own testing. My clientId has been used to log in successfully using Google's auth.
https://accounts.google.com/o/oauth2/v2/auth?&response_type=code&state=state_parameter_passthrough_value&client_id=408609215581-iknm7ovoar087pmc5ddpokq1eaha9dlp.apps.googleusercontent.com&redirect_uri=http://localhost:3000&scope=https://www.googleapis. com/auth/userinfo.profile
But if next-auth is used, the error code prompt of the callback is ?error=OAuthSignin, and the built-in page prompt of next-auth shows "Try signing in with a different account."
How to reproduce
npm run dev
click sign in
click Sign in with Google
Expected behavior
Login should jump to the callback address, and there is ?code=return. Now the callback address prompt is ?error=OAuthSignin
The text was updated successfully, but these errors were encountered: