Skip to content
Oxtro

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

Three ways to get a login code: an SMS bubble, an authenticator timer and a chat message with read ticks.

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

MethodHow it worksMain strengthMain weakness
SMS codeCode sent by text messageWorks on any phoneSIM swap, interception, phishing
Voice codeCode read out in a phone callWorks on landlines and when SMS is filteredSame as SMS, and slower
Email code or linkCode or link sent by emailNo phone neededOnly as strong as the email account
WhatsApp codeCode sent in a WhatsApp chatEnd-to-end encrypted, read quicklyNeeds WhatsApp, still phishable
Authenticator app (TOTP)App generates a code from a shared secretWorks offline, nothing sent over the networkSetup step, lost phone means recovery
Push approvalApp asks the user to approve the loginFast, no typingUsers can approve a prompt they did not start
Passkey or security keyDevice signs a challenge for that exact siteResistant to phishingNeeds 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

  1. Verify phone numbers at sign-up with a code, by SMS or WhatsApp depending on where your users are.
  2. 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.
  3. Keep phone codes as an option, protected by rate limits, cooldowns and attempt limits.
  4. 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.

Connect your first number today

Create a workspace, scan the QR code and send a message.

Create account