How to handle Google OAuth sign-in/sign-up seamlessly without showing existing account errors? Answered
Hi there!
Can you tell me if it is possible to make the Google button in the registration and login forms work for both cases? That is:
1. If I open the sign up form and click on Continue with Google and I already have an account, then after clicking on the button I logged in to the existing account without getting an error message that such an account already exists.
2. When I opened the sign-in form and clicked Continue with Google if I don't already have an account, clicking the button automatically created an account without telling me that it didn't already exist.
Comments
11 comments
Hi Valdis 👋
I'm afraid it's not possible to change the way these buttons work. We had to configure them in that way for security purposes. It led to issues when we started to make assumptions about if the user was making a mistake vs trying to get access to an account they did not create.Â
I also want this feature, just like Product Hunt
Hello all,
What's going on when a user tries to log in with Google and they get the error message "something went wrong. Please try again."?
Hey TAYLOR DAVIDSON, was this setup working for you before and can you see the error message only recently? Has there been any changes in the setup as such recently?
Could you share the site, so that I can test the social auth from my end as well?
Honestly not sure it ever worked. Had some guidance from the MS team/support to set up though.
entangledtribe.com
Appreciate it.
I just checked signing up via gmail a/c first and then tried logging in and both worked perfectly on my end without any errors / issues.
Could you try clearing cache / testing the experience for both signup and login?
I realized that this error happens when people open the log-in page from Telegram and they are inside the Telegram "browser".
I imagine same thing might happen with the instagram browser.
Ahh TAYLOR DAVIDSON, yes I believe this is a known limitation and have seen some discussions along the same line where it was mentioned Google auth is not allowed on in-app browsers, also linking a relevant discussion here to see if you can implement a similar solution as discussed there.
Hi, having a bit of trouble getting the "login with google" button to work within my login modal. Did a bit of research and it seems like it's because the modal display is set to none when users load the site, but rendered after they click the login button (the button works on other parts of my site, just not the modal). Anyone know a fix?
Hey Max 👋 Can you share a link to your site? And can you confirm the google button is inside the signup form wrapper? data-ms-form=signup
Hey Duncan thanks for your help! That seemed to be the issue - working now after I moved it into the signup form wrapper
Please sign in to leave a comment.