Hello Auth0 Community!
I’m currently working on a project that uses the New Universal Login experience, and I need some guidance on handling authentication method mismatches. Specifically, I want to prevent users from signing up or logging in using a different authentication method than the one they initially used.
For example, if a user signed up with Google, I want to prevent them from signing up or logging in using an email and password, and vice versa. When an authentication method mismatch occurs, I want to display a specific error message to the user and handle each situation appropriately.
I tried implementing a rule to handle this case, but it’s not providing the desired user experience. The error message displayed to the user is generic, and I’m unable to redirect them to a custom error page.
I would like to know the best approach to handle this situation using the New Universal Login experience. Is there a way to display a specific error message when an authentication method mismatch occurs? How can I handle each situation, such as preventing user creation in such cases or redirecting users to a custom error page?
Any help or guidance would be greatly appreciated!