I have created a workflow that allows users to sign up with their mobile number. This is how it goes:
user types in mobile number. Sends POST request to Twilio Verify which sends them a text message with a code.
they enter the code and are then prompted to enter their first name.
Upon hitting enter, their account is created. Adhering to Bubbleās built-in workflow, I store the Mobile Number and make the users email and password as follows:
Email = mobilenumber:append @domain.com
Password = mobilenumber
Everything was fine and dandy until I added the functionality to check whether the user is already registered. I want the user to enter their phone number like in steps 1 above and 2 above. But if it registers that their number is already registered, and they enter the correct code, I want it to log them in⦠not continue the signup workflow.
Unfortunately, the privacy settings I have set up donāt allow me to do a search for the userās email or mobile number. Thus I canāt search for the user by their mobile number.
Please note that I donāt want to compromise security and expose peoples phone numbers.
I thought about exposing a fraction of the users mobile number (like the last 6 digits) in a new field. This is a short term fix as people will have similar numbers if I grow, grow and grow.
Am I missing something thatās staring me in the face?
Would there be any way to do this without having them click either sign up or login?
If not, Iād prefer to meld both sign up and login into one step to offer a better experience. Research has shown that every extra step decreases the chance people will sign up to your platform by up to 15-25% (donāt quote me on that).
But what happens when the user gets logged out or logs themself out?
You can put the initial part of signup and login together. In my case, that is confirming they have possession of the mobile they used to sign up with (using Twilio). This step is important for both the login and signup.
Then itās possible to lead to different workflows depending on whether the user has an account. If they do, you log them in right away. If they donāt, you lead them to the next step. In my case, itās providing their phone number.
By combining both the first step of logging in and signing up using mobile verification, Iām abstracting away the need to think about whether youāre logging in or signing up.
Hereās a screenshot of the first step for both logging in and signing up: