Two-Factor Authentication Explained: Which Second Step to Use
Two-factor authentication (also called two-step verification, 2FA or multi-factor authentication) means that signing in takes something besides your password: a code, a tap on your phone, a passkey or a small hardware key. If someone gets your password from a leak or a fake page, the password alone no longer opens the account. It is one of the most effective things a household can do, and it takes a few minutes per account.
The methods are not equal, though. The difference that matters is whether a fake sign-in page can pass what you give it on to the real site.
The methods compared
A phishing page does not need to guess anything. It shows you a copy of the real sign-in page, takes the password and code you type, and passes them straight to the real site within seconds. Some second steps survive that, and some do not.
| Second step | Stops a stolen password | Stops a fake sign-in page | Watch out for |
|---|---|---|---|
| Passkey (on a phone, computer or password manager) | Yes | Yes: it only answers the real site | Keep more than one device able to sign in |
| Hardware security key | Yes | Yes: it only answers the real site | Register two keys; keep one at home |
| Authenticator app code | Yes | No: a fake page can relay the code within seconds | Save the app's backup or the recovery codes |
| Push prompt ("Is this you?") | Yes | No, and floods of prompts wear people down | Never approve a prompt you did not start |
| Text message code | Yes | No; the number can be moved to a thief's SIM | Ask your carrier for a port-out PIN or lock |
| Email code | Yes, if the email is locked | No | Only as strong as the email account |
This matches the US Cybersecurity and Infrastructure Security Agency, which calls phishing-resistant methods based on the FIDO and WebAuthn standards (passkeys and security keys) the "gold standard", lists app codes and push prompts as weaker, and notes that text and voice codes can be intercepted or stolen through a SIM swap. CISA is just as clear that any form of second step is better than none. If a service offers only text codes, turn them on.
Which to choose
- A passkey or a hardware security key where the service offers one. Neither can be typed into a fake page, because each checks the real site's address itself (see passkeys explained).
- An authenticator app next. It makes a short-lived code on your phone, without needing a signal. Turn on its backup option if it has one, or keep the account's recovery codes.
- A text message only if nothing else is offered, together with a lock on your phone number at your carrier (below).
- Push prompts are convenient, but only if you treat every unexpected prompt as an attack. Where a prompt asks you to type a number shown on the sign-in screen, that is better: you can only match it if you are the one signing in.
Start with the accounts that unlock everything else: every email address you sign in with, the mobile carrier account, the password manager, and the main account behind each phone or computer. A second step there protects every account that resets through them. Then banks and anything that holds money or card details.
Turning it on
- Sign in to the account from its official app, or by typing its address. Never from a link in a message asking you to "secure your account".
- Open its security or sign-in settings. The setting is usually called two-step verification, two-factor authentication, or sign-in and security.
- Add the strongest method it offers. If it offers passkeys, add one from your phone and one from a second device.
- Save the recovery codes it shows you (next section).
- Sign out and back in once to check it works, while you still have the settings page open on another device.
Recovery codes: plan the way back in
A second step adds one new risk: locking yourself out. A lost phone can take the authenticator app, the passkeys on it and the text messages with it. Most services give you a set of one-time recovery codes when you turn on two-factor. Print them or write them down, and keep them somewhere safe at home, apart from the phone. Check, too, that each account's recovery email address and phone number are ones you still have. An old work address or a number you gave up is a way in for whoever has it now.
Lock your phone number
In a SIM swap or port-out scam, a criminal persuades a mobile carrier to move your number to a SIM card or account they control, and then receives your text codes and reset messages. The US Federal Communications Commission advises asking your carrier to add a PIN or password to your account if you do not have one, and its rules require carriers to offer an account lock that blocks SIM changes and number transfers. Look in your carrier account's security settings, or call the carrier on the number on your bill, and ask for a port-out PIN or number lock. Signs it has happened: your phone suddenly loses service where it normally has it, and you get messages about a SIM change you did not ask for. Contact the carrier at once from another phone.
The one rule that beats every method
No real company, bank, carrier, government agency or support desk will ever ask you to read out, type in or forward a code. A code sent to you is a key to your account at that moment. Someone who calls or texts asking for it, however official they sound and whatever number they appear to call from, is trying to sign in as you. Hang up and, if you are worried, call the organization back on a number you already have.
The same goes for prompts. If your phone asks "Are you trying to sign in?" and you are not, press no, then change that account's password. Repeated prompts mean someone has your password. A caller who says "just approve the prompt to confirm your identity" is the person signing in. And never let someone who contacted you install remote-access software or take control of your device to "help" with your security settings.
Common mistakes
- Turning on two-factor but leaving the recovery phone number as one you no longer use.
- Keeping recovery codes only in a screenshot on the same phone as the authenticator app.
- Getting a new phone and wiping the old one before moving the authenticator app or adding a passkey on the new one.
- Switching two-factor off because it is inconvenient. If a method is a nuisance, swap it for a passkey, which is usually quicker than typing a code.
If something already went wrong
If you read a code to someone or approved a prompt you did not start, sign in to the account from its official app or website at once, change the password, sign out all other sessions, and check the recovery details. If you cannot get in, use the service's official recovery page (see recover a hacked account). If it involved a bank or card, call the bank on the number printed on your card. Then report it (see how to report phishing and scams).