Security
How to set up two-factor authentication, and which method to pick
Written by Techfo News Editorial Team · Updated

Knowing how to set up two-factor authentication is one of the most useful security skills you can have, and it takes about five minutes per account. Two-factor authentication (2FA) adds a second check after your password: a code, a tap on your phone, a fingerprint or a small hardware key. If someone steals or guesses your password, that second check stops them. This guide explains which method to choose, where to find the setting, and how to avoid locking yourself out.
Why a password alone is not enough
Passwords leak in data breaches, get reused across sites, and get typed into fake login pages. The US Cybersecurity and Infrastructure Security Agency (CISA) describes multifactor authentication as one of the simplest ways to make an account much harder to break into, because an attacker now needs something you have or something you are, not just something you know.
2FA does not replace a good password. It is a second layer. Use a strong, unique password as well; a password manager makes that practical.
The main types of second factor, weakest to strongest
The FTC ranks the common methods in roughly this order, and security agencies agree:
| Method | How it works | Main weakness |
|---|---|---|
| Code by text message or email | The site sends a one-time code you type in | Text codes can be stolen through SIM swapping; email codes are only as safe as your inbox |
| Authenticator app | An app on your phone generates a new six-digit code every 30 seconds | Can still be phished if you type the code into a fake site |
| Sign-in prompt | Your phone shows “Is this you trying to sign in?” and you tap Yes | Attackers may spam prompts hoping you tap Yes by mistake |
| Passkey | Your device signs in with a fingerprint, face or PIN, bound to the real site | Needs a device or password manager that supports passkeys |
| Hardware security key | A small USB or NFC key you touch to confirm | You must keep it with you, and should own a spare |
Passkeys and security keys are called phishing-resistant, because they only work on the genuine website’s address. If a site offers passkeys, that is usually the best choice. If not, an authenticator app is a big step up from text messages.
NIST’s digital identity guidelines (SP 800-63B) classify one-time codes sent over the phone network as a “restricted” authenticator and require services that use them to offer alternatives. In plain terms: text codes are acceptable, but not the strongest option.
How to set up two-factor authentication, step by step
The labels differ between services, but the process is nearly always the same.
- Start with your main email account. Whoever controls your email can reset most of your other passwords.
- Open the security settings. Look under Security, Sign-in & security, Login & security or Account settings. The option may be called Two-factor authentication, 2-Step Verification, Multi-factor authentication or Login verification.
- Choose your method. Pick a passkey or security key if offered; otherwise an authenticator app or sign-in prompt; use text messages only as a last resort.
- Register the method. For an authenticator app, the site shows a QR code. Open the app, choose to add an account, and scan it. Type the six-digit code the app shows to confirm.
- Save the backup codes. Most sites give you a list of single-use recovery codes. Print them or write them down and keep them somewhere safe at home. Do not keep them only on the phone you might lose.
- Add a second method. A spare security key, a second phone or a backup phone number means losing one device does not lock you out.
- Test it. Sign out and sign in again.
Then repeat for the next account on your list.
Which accounts to protect first
Work down this order:
- Main email account (and the Apple, Google or Microsoft account that controls your phone or computer)
- Online banking and payment apps
- Password manager
- Cloud storage holding photos and documents
- Social media and messaging accounts, which scammers hijack to target your friends
- Shopping accounts with saved cards, and government or tax accounts
Many accounts already have 2FA switched on, including most Apple Accounts; Apple’s support page explains how trusted devices and phone numbers work. Google’s help pages explain how to turn on 2-Step Verification and add passkeys or security keys.
Mistakes that lock people out
- Only one device registered. If the phone with your authenticator app breaks, you need a backup code or second method to get back in.
- Backup codes stored in the account they protect. Keep them offline or in a separate, secure place.
- Changing phone without moving the authenticator. Before you wipe or trade in an old phone, move your authenticator accounts to the new one or check that the app’s backup feature has synced them. Our guide on how to back up a phone covers the rest of the switch.
- An out-of-date recovery phone number or email. Check these every time you change number.
2FA and scams
2FA stops most remote attacks, which is why scammers now try to get the code from you. A caller may claim to be your bank, carrier or a tech company and ask you to “confirm” a code that has just arrived. That code is the key to your account. Never read it out, type it into a link you were sent, or approve a sign-in prompt you did not start. Real companies do not ask for it.
Watch for these tricks in particular:
- Prompt bombing. A burst of “Approve sign-in?” notifications you did not trigger means someone has your password. Deny them all and change the password.
- Fake login pages. A link in a text or email leads to a convincing copy of a sign-in page that asks for your password and then your code. Our guide on how to spot phishing emails shows the warning signs.
- Voice calls. Cloned voices and confident scripts create urgency; see how to spot AI voice scam calls.
The bottom line
Turning on two-factor authentication is a short job with a large payoff. Do your email first, choose the strongest method each site offers, save your backup codes offline, and never share a code with anyone who contacts you. Once that is done, consider replacing passwords with passkeys wherever they are offered, so there is nothing left to phish.
Frequently asked questions
What is two-factor authentication in simple terms?
It is a second check after your password. When you sign in, the site also asks for a code from your phone, a tap on a prompt, a fingerprint on a passkey, or a physical security key. Someone who only has your password cannot complete the sign-in.
Is 2FA the same as MFA or 2-step verification?
For everyday purposes, yes. Multi-factor authentication (MFA) is the general term for using more than one factor; two-factor is the most common case; 2-step verification (2SV) is the name Google, Microsoft and the UK NCSC use for the same idea.
Is text message 2FA still worth using?
Yes, it is far better than a password alone. But codes sent by text can be intercepted through SIM-swap fraud, so the FTC and FBI recommend an authenticator app, passkey or security key where a site offers one.
What happens if I lose the phone with my authenticator app?
Use one of the backup codes you saved when you turned on 2FA, or another method you registered, such as a second phone or a security key. Without any of these you have to go through the site's account recovery process, which can take days.
Should I use 'remember this device'?
Only on your own phone or computer. On a shared or public computer, leave it unticked so the next person cannot sign in without the second factor.
Sources
- CISA: Turn On Multifactor Authentication
- FTC Consumer Advice: Use Two-Factor Authentication To Protect Your Accounts
- NCSC: Setting up 2-Step Verification (2SV)
- NIST SP 800-63B: Authentication and Authenticator Management
- Google Account Help: Turn on 2-Step Verification
- Apple Support: Two-factor authentication for Apple Account
Editorial team
The Techfo News editorial team researches each article from standards bodies, manufacturers' documentation and government sources, and updates articles when details change.




