TwilioRahul AnandExplainer
Extending Twilio Verify Beyond Carrier Channels: Passkeys, TOTP, and Push Without the Plumbing
Summary
Twilio Verify traditionally handles carrier-based OTP channels like SMS and voice, but also supports software channels including Passkeys, TOTP, and Push. Building these channels in-house requires managing FIDO2 relying party logic, CBOR parsing, TOTP seed storage equivalent to password hashes, and push notification lifecycle with key rotation. Verify abstracts these burdens through unified APIs: Passkey registration and verification each take two API calls, TOTP factors return a binding URI for QR code rendering and support secret migration, and Push challenges support silent approval with active polling for delayed notifications. Adding a software channel does not require a new integration; it is a Factor call against an existing Entity within the same Service configuration, providing one object model, combined audit trails, and centralized factor inventory. The platform handles cryptographic compliance, cross-platform origin validation, and credential custody while leaving client implementation, domain association files, and cross-channel policy decisions to the developer.
Context
The post is written for teams already using Twilio Verify for carrier-based OTPs like SMS and voice, explaining how to add open source software channels (Passkeys, TOTP, Push) without building the supporting infrastructure in-house.
Approach / What changed
Use Twilio Verify’s four core resources (Service, Entity, Factor, Challenge) to add Passkeys, TOTP, and Push channels. Passkeys are handled via /Passkeys/Factors and /Passkeys/VerifyFactor endpoints, TOTP via standard Factors with FactorType=totp and binding.uri, and Push via /Push/Factors with asymmetric key storage. The platform abstracts cryptographic operations, origin validation, and key lifecycle management, requiring only client-side implementation and domain association files from the developer.
Takeaways
Twilio Verify abstracts FIDO2 WebAuthn relying party operations—CBOR parsing, signature verification, cross-platform origin validation—into two API calls for passkey registration and verification.
TOTP seed secrets require secure storage equivalent to password hashes; Verify generates and stores seeds, handles clock drift, and allows importing existing secrets via Binding.Secret.
Push channels benefit from Verify’s automated key management, token rotation, challenge timeouts, and signed webhook notifications, with SDK support for active polling to overcome APNs/FCM delivery delays.
FAQ
How do I add a Passkey channel to an existing Verify service?
Configure the Service with Passkeys.RelyingParty parameters. Then register a passkey factor via POST /Passkeys/Factors with the user identity, and verify it via /Passkeys/VerifyFactor. Authentication uses /Passkeys/Challenges and /Passkeys/ApproveChallenge.
How does Verify handle TOTP seed storage?
Verify generates the TOTP seed, stores it securely, and returns a binding.URI for QR code rendering. It handles clock drift and allows importing existing secrets via Binding.Secret for migration.
What happens if a push notification is delayed?
Twilio Verify SDKs support active polling by the client for pending challenges, ensuring completion even when APNs or FCM delivery is delayed due to power-saving modes or network constraints.
Source and freshness
- Source
- twilio.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.