Picture this. You get a new phone, and halfway through setting it up you realize your banking app wants a code that goes to your old number, which is now sitting in a drawer.
Or you've been getting texts with login codes for years, and a friend says "you really shouldn't use text codes anymore." Is that true?
The short answer: a text code is better than nothing, but it's the weakest of the three common options. Let's compare them in plain language, and then build a five-minute plan for your own accounts.
The three options, at a glance
SMS code | Authenticator app | Passkey or security key | |
|---|---|---|---|
How it works | A code arrives by text | An app on your phone shows a code that changes every 30 seconds or so | You approve with your face, fingerprint, or device PIN |
Stops SIM swapping? | No | Yes | Yes |
Stops fake login pages? | No | No | Yes |
Needs mobile signal? | Yes | No | No |
Ease of use | Easy | Easy once set up | Very easy once set up |
Best for | A fallback, low-stakes accounts | Most accounts | Email, money, work, and anything important |
That table is the whole story in one place. Now the reasons behind it.
Option 1: SMS codes
You ask to log in, and a six-digit code arrives by text. It's familiar, and it works on any phone.
The problem is that the code travels through the phone network, and that network wasn't built to protect secrets. There are three main risks:
SIM swapping. A criminal convinces your mobile carrier to move your number to a SIM they control. Then your texts, including codes, go to them. They never touch your phone.
Interception. Weaknesses in how carriers route messages can, in rare cases, let others read them.
Real-time phishing. You land on a fake login page, type your code into it, and the attacker uses it instantly on the real site.
NIST's current guidelines classify codes sent over the phone network as a "restricted" authenticator, and CISA has advised people at high risk to move away from SMS. That doesn't mean SMS is useless. It means it should be a fallback.
Option 2: Authenticator apps
An authenticator app generates a short-lived code on your phone, using a secret shared with the service when you first set it up. No text message is involved.
That removes SIM swapping completely, because the code isn't sent over the phone network, and it works without a signal. It's a big step up from SMS.
But it isn't perfect. The code is something you type in, so a fake login page can still trick you into entering it, just like a text code. And if you lose your phone without a backup, getting back in takes work.
Option 3: Passkeys and security keys
A passkey replaces both the password and the code. Your device holds a secret key, and you unlock it with your face, fingerprint, or PIN. A security key is a small physical device that does the same job.
The key is tied to the real website, so a fake site gets nothing from it. That makes passkeys resistant to both SIM swapping and phishing, which is why CISA and NIST point to this kind of method as the most secure. They're also quick. There's no code to type.
The tradeoffs: not every service supports them yet, and you need a plan for losing the device that holds them (see below).
Which should you use?
For each account, use the strongest method it offers.
Email, banking, payments, work accounts: a passkey or security key if available, otherwise an authenticator app. These accounts are the keys to everything else, because most password resets go to your email.
Social media and shopping: an authenticator app or passkey if offered. Our guides for Instagram, X, Telegram, and Snapchat show where to find these options.
Low-stakes accounts with nothing valuable or private in them: SMS is fine, and far better than no second step.
Everywhere: keep a backup method, so a lost phone doesn't lock you out.
A five-minute upgrade plan
You don't have to change everything. Start with the accounts that matter most.
Pick your top three accounts, usually email, your main bank or payment account, and your most-used social account.
Open each account's security settings and look for passkeys, security keys, or an authenticator app.
Set up the strongest option you find. For an authenticator app, you'll scan a QR code, then enter a code to confirm.
Save the backup codes the service gives you. Store them somewhere safe, such as a password manager, and not in a photo on your phone.
Keep SMS as a fallback only, if the service requires a phone number.
Note which phone holds your authenticator, and what you'll do if it's lost or replaced.
The weak link people forget: recovery
A strong login doesn't help if the backup route is weak. Many services let you reset access by sending a text to your number or a link to your email. If a criminal can take over either, they can walk around your second step.
A few ways to close that gap:
Secure your email with the strongest method available, since it often unlocks everything else.
Protect your phone number at the carrier. Ask your carrier about a PIN or a port-out lock, which makes it harder for someone to move your number.
Keep backup codes somewhere that isn't your phone.
Update recovery details when you change your number or email.
For more on keeping your number out of the wrong hands, read our guide to protecting your phone number from spam and data leaks.
Passkeys: what to know before you switch
Where they live. A passkey may be stored on your device, in a password manager, or synced through your phone's account, depending on the service and your settings. Syncing makes it easy to use on a new device, and also means your account's security matters.
Have more than one. Set up a passkey on two devices, or keep a backup method, so a lost phone doesn't lock you out.
Not every site supports them. Many do now, and the list keeps growing. Use them where you can, and an authenticator app where you can't.
Authenticator apps: what to know before you switch phones
An authenticator app lives on your phone, so a new phone needs a transfer. Many apps have an export or backup feature. Use it before you wipe the old phone. If you can't, you'll need the backup codes for each account, which is why saving them matters.
Common mistakes
Relying on one method only. Add a backup.
Keeping backup codes in a photo or a note on the same phone. Lose the phone, lose the codes.
Approving a prompt you didn't start. If a login approval pops up and you didn't try to log in, tap deny and change your password. Attackers sometimes spam prompts and hope you'll give in.
Reading a code out to "support." No real support agent needs your code, whatever type it is.
Leaving an old number on your accounts. Update it before you give it up.
A note about our numbers
We sell carrier-issued numbers for receiving SMS codes, so we'll be straight with you about this guide. SMS is the weakest of the three options. If you use a rented or temporary number to receive codes, treat it as a convenience for low-stakes sign-ups, tests, and similar uses, and don't use it for email, banking, payments, or anything you can't afford to lose. Always use a number you own and will keep for accounts like those. We explain when a second number does and doesn't make sense in our guide on separate numbers for business profiles. And never use free public SMS sites for codes you care about, because anyone can read those codes.
If a code isn't arriving at all, see our complete guide to verification code problems, or our guides for iPhone and Android.
Quick FAQ
Is SMS two-factor authentication safe? It's much better than a password alone, but it's the weakest common second step, because of SIM swapping, interception, and real-time phishing.
Should I stop using SMS codes altogether? Not if it's the only second step you have. Switch your important accounts to an authenticator app or passkey, and keep SMS as a fallback.
Is an authenticator app safer than SMS? Yes, mainly because it can't be hijacked through SIM swapping, and it works without a signal. It can still be phished, though.
Are passkeys really safer? They're the strongest of the three because they're tied to the real website, which stops fake login pages and doesn't depend on your phone number.
What if I lose the phone that holds my passkey or authenticator? That's what backup codes and a second device or method are for. Set those up in advance.
Do I still need a phone number? Many services still ask for one for recovery. Use a number you own and will keep.
More answers are in our FAQ.
The takeaway
Use the strongest second step each account offers: a passkey or security key first, an authenticator app second, SMS last. Protect your email above all, save backup codes somewhere that isn't your phone, and never read a code out to anyone. A text code is better than nothing, but it shouldn't be the only lock on the accounts that matter.




