How to fix Google Sign-In returning "Please login with email" error instead of allowing OAuth? Answered
Hi all! I'm trying to set up Google sign on but when I go through the process I'm receiving a "Please login with your email message" — almost as if I HAVE to sign in with an email instead. Can anyone help?
Comments
4 comments
Hey Mike Mott, usually this error occurs when you already have an account associated with that email address (the one that you are trying to sign in via Google), but it is not connected to a social auth provider.
Could you test the signup and login via a different email ID (i.e. brand new user) via Google?
Hey A J ! But since the user already has an account associated with that Gmail address, wouldn't they be able to use it to log in?
Mike Mott, this is possible, but for security purposes, that user has to give the permission to connect their Gmail account to be used as an option for login on the site.
So, if you want to provide this Google sign in option for previously signed up email-password users, you could have a profile update section on the site, where they can choose to connect their Gmail account as well. Once that's done, that user can sign in via google or via password mode.
Ahhhh, gotcha — appreciate the help! I might be back to ask additional questions!
Please sign in to leave a comment.