You can configure a custom phone provider with Twilio Verify, which helps fight fraud and protect user accounts. This sets up Twilio Verify as your custom phone provider.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
You must have a Twilio account with a valid SMS and/or phone delivery option.Set up Twilio Verify service
You can create a Twilio Verify service through the Twilio Console or the Verify REST API. You will need the following to connect your Auth0 custom phone provider with Twilio Verify:- TWILIO_ACCOUNT_SID
- TWILIO_AUTH_TOKEN
- TWILIO_VERIFY_SID
Connect custom phone provider with Twilio Verify
- In the Auth0 Dashboard, navigate to Branding > Phone Provider. This takes you to the Phone Message Provider page.
- Select Custom as a Phone Provider.
- Under Provider Configuration, add the following code sample to allow the Twilio API to send phone messages to a user’s phone number:
- Click the Key icon to open the Secrets menu. Add the following values from your Twilio Verify service setup:
- TWILIO_ACCOUNT_SID
- TWILIO_AUTH_TOKEN
- TWILIO_VERIFY_SID
- To load the Twilio helper library, click the Dependency icon. Then, click the Add Dependency button. When the Add Dependency pop-up window appears, enter the following:
- Name: Twilio
- Version: latest (should be auto populated)
- Click Save. When you click Save, the Action automatically saves and deploys. To test the custom phone provider configuration before using it in a production environment, click Send Test Message.