When a user signs up with database (password auth), but the user has used the social login already, how can we tell the person that he could try with the Social login (eg. Google)?
We’ve followed the guide to change the tenant settings to display a user exists error instead of a generic error.
But how can we further optimize the error message to show “You are using Google Login, please try again”?
We decided to go with this approach to save complex user flow
- When a Google Auth user signs up
Use management API to create an email-password account with the same email address
- Use a randomly generated password to prevent security risk
- Set “email_verified”: true (because this email is Google-authenticated already)
- Now link this Google user account with this newly generated email-password user together by the management API
Thanks for sharing that with the rest of community!