I am trying to link a phone number to the user and I want to verify their number. How do I create phone verification with Twilio? A demonstration would be helpful. Thanks in advance!
-
You’d have to install a plugin or setup APIs to connect into Twilio.
-
Build the user interface to allow a user to add their phone number. For this you’d use an input element to capture the phone number and a button to trigger a workflow to save that information.
-
Create workflows to save the information as well as trigger the events to send the phone number provided an SMS message.
-
Have an SMS message to include a link to click to confirm the phone number.
-
When the URL is followed ensure there is information sent through the URL parameters or paths (up to you which one, either would work).
-
On page load run workflows set with conditional to look toward the URL parameters or paths to ‘read’ the data (should be the user).
-
That page should have a verification process by which the user enters a passcode you sent to them in the SMS…OR you could just make it automatic once the page is accessed with the URL parameters or paths…OR you could show a popup by which they sign in again and use the URL parameters or paths to register the fact that the user is verifying a phone number.
There are a lot of considerations for that final step based on the user experience you want.
This topic was automatically closed after 70 days. New replies are no longer allowed.