- Home
- >
- TOTP with SMS 2FA fallback
TOTP with SMS 2FA fallback
By Twilio
- Verify
- Twilio
- Quick Deploy
- Applications
This app will show you an example of how to build a time-based one-time passcode (TOTP) experience with fallback to SMS or WhatsApp using the Twilio Verify API.
This sample uses function templates to quickly create and deploy serverless functions you can use to interface with the Twilio Verify API from your production application.
How it works:
- User verifies their phone number
- User sets up TOTP authentication with app of their choice
- User can log in with either method: TOTP or SMS/WhatsApp OTP
For more information, check out this overview of TOTP. For more best practices including retry logic and channel fallback, check out best practices for managing retry logic with SMS 2FA.
Launch and test this app in a few minutes with Quick Deploy. No server needed. Quick Deploy will automatically configure and deploy this app using Twilio Functions.
Learn more about Twilio Functions
Step 2:Set up your application
Step 3:Deploy your application and try it out!
Deploying applicationThis might take up to a minute
Success! Your application has been deployed.
Oops...something went wrong. Retry
Why use Quick Deploy?
No coding required to launch
Easy to edit and iterate post launch
No server management
Scales automatically
Secure by default
Don't see what you want? Request a code sample Explore Docs
There was an issue loading the page.
Please try again in some time.