Blog
SMS vs authenticator apps vs WhatsApp codes for two-factor authentication
SMS codes are the second factor almost every user can set up, and also the easiest to attack. Here is how they compare with authenticator apps, passkeys, email and WhatsApp codes, and how to combine them so most users end up with something stronger.
Last updated

Pros of SMS 2FA
- Everyone can use it. Any phone that receives text messages works, with no app to install and nothing to set up beyond a phone number.
- Users understand it. Typing a six-digit code from a text message needs no explanation.
- It doubles as phone verification. The same code proves the user controls the number, which helps with sign-up fraud and account recovery.
- It is far better than a password alone. An attacker with a leaked password still needs the phone.
Cons of SMS 2FA
- SIM swapping. An attacker who convinces a carrier to move the number to a new SIM receives every code.
- Network interception. Text messages are not end-to-end encrypted, and weaknesses in the signalling networks between carriers have been used to redirect them.
- Phishing. A fake login page can ask for the code and use it in real time. This applies to every code-based method, not only SMS.
- Delivery problems. Codes can arrive late, or not at all, when abroad, in poor coverage or when a carrier filters them.
- Cost and fraud. Each message costs money, and sign-up forms that send SMS attract pumping attacks.
What NIST says about SMS
The US National Institute of Standards and Technology publishes widely used guidance on authentication. Its current revision, SP 800-63B-4, classes codes sent over the phone network, by SMS or voice call, as a restricted authenticator. That means they are still allowed, but an organisation that uses them should assess the risk, offer users at least one alternative that is not restricted, and plan to move away from them over time.
In practice: SMS is acceptable as one option, but it should not be the only one if you protect money, health data or administrative access.
Comparing 2FA methods
| Method | How it works | Main strength | Main weakness |
|---|---|---|---|
| SMS code | Code sent by text message | Works on any phone | SIM swap, interception, phishing |
| Voice code | Code read out in a phone call | Works on landlines and when SMS is filtered | Same as SMS, and slower |
| Email code or link | Code or link sent by email | No phone needed | Only as strong as the email account |
| WhatsApp code | Code sent in a WhatsApp chat | End-to-end encrypted, read quickly | Needs WhatsApp, still phishable |
| Authenticator app (TOTP) | App generates a code from a shared secret | Works offline, nothing sent over the network | Setup step, lost phone means recovery |
| Push approval | App asks the user to approve the login | Fast, no typing | Users can approve a prompt they did not start |
| Passkey or security key | Device signs a challenge for that exact site | Resistant to phishing | Needs a recent device and a recovery plan |
Where WhatsApp codes fit
A code sent on WhatsApp travels end-to-end encrypted, so it cannot be read on the carrier network, and it is not subject to SMS filtering or sender registration. In many countries people open WhatsApp sooner than their SMS inbox.
It is not a cure-all. The code can still be phished like any other. And a WhatsApp account is itself registered with an SMS code, so an attacker who takes over the phone number could register WhatsApp on a new device, unless the user has turned on WhatsApp's two-step verification PIN. Treat WhatsApp codes as a better-delivered, harder-to-intercept version of SMS, not as a phishing-resistant factor.
Email codes
Email is a reasonable fallback for users without a phone, and it works for confirming an address. As a second factor it is only as strong as the email account, and for many users that account is protected by the same password they reuse elsewhere.
Expert recommendations
Security guidance from NIST, national cybersecurity agencies and the major identity platforms points the same way:
- Offer passkeys to users who can use them. They are the only common method that resists phishing.
- Offer an authenticator app as the standard upgrade from SMS.
- Keep SMS or WhatsApp codes for sign-up phone verification, for users who cannot use the stronger options, and for account recovery with extra checks.
- Never allow a phone code alone to reset a password and the second factor together.
Business security implications
The factor you choose affects more than security:
- Conversion. Every step in sign-up loses some users. Phone codes are the least friction for most people; requiring an authenticator app at sign-up loses more.
- Support load. Users who lose an authenticator phone need a recovery route. Plan it before launch.
- Cost. SMS and WhatsApp codes cost money per message, authenticator apps and passkeys do not.
- Fraud. Phone verification makes mass fake sign-ups more expensive for attackers, which is why it is used at sign-up even by services that use passkeys for login.
Practical takeaways
- Verify phone numbers at sign-up with a code, by SMS or WhatsApp depending on where your users are.
- After sign-up, encourage users to add a passkey or an authenticator app, and make it the default for administrators. To test your TOTP setup, use our 2FA code generator.
- Keep phone codes as an option, protected by rate limits, cooldowns and attempt limits.
- Design account recovery with as much care as login.
If you want to send verification codes on WhatsApp, Oxtro's OTP API does it from your own number in two calls. To compare the main SMS providers, read the top 5 SMS verification providers.