If you attempt to send an SMS to an international code which corresponds with a country listed above the API will return an invalid_phone_number_country_code error. Please reach out to support@stytch.com if you have any questions.
Passcodes overview
Our flexible one-time passcodes (OTP) can be sent via SMS, WhatsApp, or email, and allows you to use this method as the primary factor or as a two-factor authentication to strengthen security.
Types of passcodes
SMS OTP
Build an authentication flow that texts a one-time, numeric code to your users' mobile devices, which they can then enter to log in.
WhatsApp OTP
For reliable deliverability and an international user audience, leverage our WhatsApp OTPs.
Email OTP
Enable seamless cross device logins across desktop and mobile with our Email OTPs.
Example apps using passcodes
Explore the different ways you can layer passcodes in your authentication with our example apps.
Starting with a template
Examples using the Stytch frontend SDKs, for web and mobile. Includes email magic links and all of our OAuth providers, including Google One Tap!
Building from scratch
Examples using the direct API integrating Stytch passcodes solely on the back end.