Overview
Twilio generates, delivers, and checks the code, so your app never stores or compares codes. The connector is a Service module (TwilioVerifyConnector) that calls the REST API directly, with no extension or SDK.
Typical flow:
Every action returns Success, ErrorCode, and ErrorMessage and never throws.
Requirements and setup
The connector works once three site properties are set in each environment.
Requirements
Setup
CheckConfiguration()
Success = True
Never put credentials in literals, defaults, or code: only in the site properties.
Action reference
Five public server actions. Each takes an optional ServiceSid that overrides the VerifyServiceId site property for one call.
SendAuth sends a code.
Verify checks the code the user typed.
CancelVerification cancels a pending verification.
GetVerification reads the state without using a check attempt.
CheckConfiguration tests the credentials and the Verify Service without sending anything.
SendAuth inputs
Error codes
ErrorCode = 0 means success; negative codes come from the connector and positive codes from Twilio. ErrorMessage holds a readable message for the common cases and Twilio's own message for the rest.
Known limitations
Twilio Account Creation Tutorial
Account
API Keys and Token
Configure the Twilio Verify
Twilio Verify offers a "Try it out" feature for users interested in exploring their services. Click on the "Start Building" to begin creating the first Twilio Verify Service.
To finalize the setup process, carefully go through the wizard to ensure all settings are correct. Select the plan that best fits your needs. Once you've made your choice, conclude the setup by clicking the "Save and Close" button.
Navigating a product page efficiently can enhance the user experience significantly. By selecting the "services" menu entry, users can access a comprehensive view of all the services they have created and configured.
Configure the connector
To configure the TwilioVerifyConnector module in the Service Center, navigate to the Site Properties tab. Here, you'll need to enter the AccountSID, AuthToken, and ServiceId that you've previously acquired. This will ensure the module is properly set up with your Twilio account details.
Demo
Launch the demo application, input the designated phone number to receive a verification code, and then enter the code upon receipt to confirm the outcome