NextAuth - Email Provider Breaking Google Provider!
Howdy,
Some users of my app (app.getriver.io) started reporting not being able to log in to our app. We tested and figured out that some people who originally signed up with email + magic link are then trying to sign in with google (but connected to the same email they originally authenticated with)
Is it possible to intercept login attempts like this so that you can interchangably login with email or google for the same email?
If not, how do I intercept this and display some sort of warning when someone tries to auth with a google account that already has an account associated with the same email?
Solution:Jump to solution
GitHub
Keep getting redirected with error: OAuthAccountNotLinked · Issue #...
Describe the bug In your next-auth-example, default login screen (http://localhost:3000/api/auth/signin) I added TWITTER_ID and TWITTER_SECRET and DATABASE_URL to .env.local added all these callbac...
2 Replies
FIX IDENTIFIED
Solution
GitHub
Keep getting redirected with error: OAuthAccountNotLinked · Issue #...
Describe the bug In your next-auth-example, default login screen (http://localhost:3000/api/auth/signin) I added TWITTER_ID and TWITTER_SECRET and DATABASE_URL to .env.local added all these callbac...