Connect your app to GitHub
Implement Passwordless SMS Authentication
With an SMS connection, the user is asked to enter a phone number, to which Auth0 sends a one-time code using Twilio. The user then enters the code into your application.
If the phone number attached to the code matches an existing user, Auth0 authenticates the user:
If the user is new, their user profile is created for the
sms connection before they are authenticated by Auth0.
1. Add a new application
2. Register your new app
Open an account with Twilio
3. Get your GitHub app's Client ID and Client Secret
Configure the connection
- Enter your Twilio Account SID and Twilio Auth Token.
- Select your SMS Source and depending on your selection, enter either your Twilio Messaging Service SID or a From phone number. Users will see what you enter as the sender of the SMS.
- In Message, enter the body text of the SMS.
- Adjust settings for your OTP Expiry and OTP Length, and click SAVE.
4. Copy your GitHub app's Client ID and Client Secret
The Message area supports multiple languages.
To choose the language, call the /passwordless/start authentication endpoint and set the value of the 'x-request-language' header. When this header is not set, the language is extracted from the 'accept-language' header, which is automatically set by the browser.
5. Access GitHub API
The Message area accepts Liquid syntax. You can use this syntax, combined with exposed parameter values, to programmatically construct elements of the message. For example, you can reference the
request_language parameter to change the language of the message:
The following parameters are available when defining the message template:
||The password to use|
||The user's phone number|
||The name of the application with which the user is signing up|
||The requested language for message content|
Enable your apps
Click the Apps tab, and enable the apps for which you would like to use callback URLsPasswordless SMS.