- Verify TOTP
- Quick Deploy
This app will show you an example of how to build a time-based one-time passcode (TOTP) experience using your favorite authenticator app (like Google Authenticator or Authy) with the Twilio Verify API.
TOTP is a more secure alternative to SMS 2FA and is a popular form of authentication for higher risk users (politicians, celebrities, journalists) or platforms (email, banking).
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. The interface provided shows off an example onboarding flow.
How it works:
- User enters their username
- App generates a QR code
- User scans QR code in a compliant authenticator app
- User enters the correct token
- App verifies the token and the factor
- App verifies additional factors on an ongoing basis
For more information, check out:
Don't see what you want? Request a code sample Explore Docs
Questions about scaling, pricing, or which products/features to use? Get a consultation
There was an issue loading the page.
Please try again in some time.