SSO Email Already Exists
Many apps have the ability to let users log in using multiple methods - SSO/Identity and Email+Password
If the user's email already exists using the Email+Password method, the SSO process will not log the user in and your users may be routed back to the sign in page.
We recommend setting up a simple error message to handle such scenarios that also helps remind your users to check the method they used to log in.
After you have setup your SSO workflows according to the documentation the relevant setup documentation ( Visual Element Based (SSO Plugin) OR Plugin Action Based (SSO Plugin) ), you will need to add the following steps:
Add a text element to your login page with the message you would like to show your user:
Add a custom field in your Bubble user data to capture the provider info, in this example, we are naming the custom field as sign in method. We will store the provider name in this field.
- Step 1: In your existing SSO Login workflow, edit the first step to save the SSO Profile's Provider name against the user in your database:
- Step 2: Add a condition to Search for users:count is 1 based on email and sign in method. This will search for the condition to see if the user has logged in via SSO or Email+Password method
- Step 3: Add a Step 3 to the workflow to Show the Text element only when users email and sign in method match
This would show the message to the user to recheck their login method.
Need additional help? Reach out to our support via [email protected] or live chat through your Pathfix dashboard