A password alone is a weak lock. People reuse them, type them into fake login pages, and lose them in data breaches that have nothing to do with their own habits. Two-factor authentication, usually shortened to 2FA, adds a second check after the password so that a stolen password is not enough on its own.
The idea is simple. Logging in requires proof from two different categories: something you know (a password or PIN), something you have (a phone, a hardware key), or something you are (a fingerprint or face scan). A password plus a code sent to your phone counts. Two passwords do not, because both are the same category.
The main types of second factor
Not all second factors offer the same protection. Here are the common ones, roughly from weakest to strongest.
- Text message codes. The service sends a six-digit number to your phone. These are easy to set up and work on any phone, but they can be intercepted if an attacker convinces your carrier to move your number to a new SIM, a trick known as SIM swapping.
- Authenticator app codes. An app on your phone generates a code that changes every 30 seconds or so. The code is produced on the device and is not sent over the phone network, which removes the SIM swapping problem.
- Push approvals. The service sends a prompt to an app, and you tap approve or deny. They are quick, but people can approve a prompt out of habit or irritation, and attackers sometimes exploit that by triggering repeated requests.
- Hardware security keys. A small USB or NFC device that you plug in or tap. The key checks the website address before it responds, so a convincing fake login page cannot capture anything useful from it.
- Passkeys. These replace the password with a cryptographic key stored on your device and unlocked with your fingerprint, face, or device PIN. They are built on the same standards as security keys, and Apple, Google, and Microsoft all support them.
Why phishing matters in this choice
The biggest practical difference between these methods is how they hold up against phishing. If you type your password and a six-digit code into a fake site, the attacker can pass both along to the real site within seconds. Codes from text messages and authenticator apps are exposed to this. Hardware keys and passkeys are tied to the real website address, so they do not respond to a lookalike page. That is why security agencies tend to describe them as phishing-resistant. The Cybersecurity and Infrastructure Security Agency has a page on this at multifactor authentication guidance.
Which one to use
The best method is the strongest one a given account supports that you will actually keep using. Any second factor is a meaningful improvement over a password alone, and many people find that the habit matters more than the specific method.
A reasonable order of priority:
- Use a passkey or hardware key where the service offers one, especially for email, banking, and your password manager.
- Otherwise use an authenticator app.
- Use text messages only when nothing else is available.
Your email account deserves the most attention. Nearly every other account can be reset through it, so whoever controls your inbox can often take over everything else.
Setting it up without locking yourself out
The most common 2FA problem is not an attack. It is losing the phone. Before you turn it on, take a few steps so that a broken or stolen device does not cost you the account.
- Save the backup codes. Most services give you a set of one-time codes when you enable 2FA. Print them or store them somewhere separate from your phone, such as a locked drawer or a password manager.
- Register a second method. If you use a hardware key, buy two and keep one somewhere safe at home.
- Check how your authenticator app handles backups. Some apps can sync codes to a cloud account or export them to a new phone, and others cannot. Find out before you need it.
- Keep your recovery email and phone number current. Recovery options are only useful if they still reach you.
Common mistakes
Approving a login prompt you did not start is the one to watch. If a push notification or code request arrives when you were not logging in, deny it and change your password, because someone already has it.
Another is sharing codes. No legitimate company, including your bank or an account support team, will ask you to read a verification code back to them. Callers who ask for one are usually trying to log in as you at that moment.
Finally, remember that 2FA does not replace a good password. Use a unique password for each account, ideally generated and stored by a password manager. The two layers work together: the password stops casual guessing, and the second factor covers the cases where the password leaks.
Where to start
Open the security settings of your email account first, then your bank, then any account that stores payment details or personal records. Look for the headings “two-step verification,” “2-factor,” or “passkeys.” Most take only a few minutes. The National Institute of Standards and Technology also publishes identity and access management resources for readers who want the technical background behind these recommendations.