Account Security And Privacy

Two-Factor Authentication Explained

How a second login step works, the main kinds of second factors from text codes to security keys, and how to choose and set them up sensibly.

On this page
  1. The idea in one paragraph
  2. The three kinds of proof
  3. Common second factors
  4. Which should you choose?
  5. Setting it up without locking yourself out
  6. Limits to keep in mind
  7. For teams

The idea in one paragraph

Two-factor authentication, often shortened to 2FA, means proving who you are in two different ways when you sign in. The first is usually your password. The second is something else: a code, a prompt on your phone, a physical key or a fingerprint. A thief who steals only your password cannot get in, because they lack the second item.

This matters because passwords leak, get guessed or get tricked out of people. A second step turns a single point of failure into two.

The three kinds of proof

Authentication is generally described in terms of three categories.

  • Something you know: a password or PIN.
  • Something you have: a phone, a security key, a card.
  • Something you are: a fingerprint or face scan.

Two-factor authentication combines two different categories. Two passwords, or a password plus a secret question, are both “something you know,” so that is not true two-factor protection.

Common second factors

Codes sent by text message

The service texts a short code to your phone, and you type it in. This is widely available and easy to understand, which makes it a big improvement over no second step. Its weakness is that phone numbers can sometimes be taken over by a scammer who convinces the carrier to move the number to another device, and text messages can be intercepted in some situations. It is better than nothing, but usually considered the weakest of the common options.

Authenticator apps

An app on your phone generates a new short code every thirty seconds or so, based on a secret shared with the service during setup. The codes work without a mobile signal, and they cannot be redirected the way a phone number can. They are a common middle-ground choice. If you lose or replace your phone, you will need your recovery options to move them.

Push approvals

Some services send a prompt to an app asking you to approve or deny the sign-in. These are convenient. Attackers sometimes exploit that by triggering many prompts in the hope you tap “approve” to make them stop. Never approve a prompt you did not start, and treat an unexpected prompt as a sign that someone has your password.

Security keys

A small physical device, usually plugged in or tapped on your phone, that you use to confirm sign-in. These are typically regarded as among the strongest options because they are designed to work only with the genuine site, which makes them resistant to fake login pages. The downsides are cost, the chance of losing one, and not every service supporting them. Keeping a spare is wise.

Passkeys and biometrics

Some services now offer passkeys, which let you sign in using your device’s unlock method, such as a fingerprint, face scan or PIN, instead of a typed password. They are designed to resist phishing. Support is growing but varies by service. A fingerprint on a phone usually unlocks a stored credential on that device; it does not usually send your fingerprint to the website.

Backup codes

Many services give you a set of one-time codes to use if you lose your second factor. They are your emergency exit.

Which should you choose?

A general order, from stronger to weaker, is roughly: security keys and passkeys, then authenticator apps, then push approvals, then text messages. But the best choice is the one you will actually use, on the accounts that matter. Using text codes everywhere is far better than using nothing.

Turn it on first for:

  1. Your main email, since it can be used to reset other passwords.
  2. Your password manager.
  3. Cloud storage and work accounts.
  4. Financial accounts.
  5. Social accounts that others could use to impersonate you.

Setting it up without locking yourself out

  • Save backup codes somewhere safe and separate from your phone, such as in a password manager or printed and stored securely.
  • Register more than one method if the service allows it, for example an authenticator app and a security key.
  • Keep your recovery email and phone number current.
  • Plan for a lost phone. If your phone is your second factor, lost devices become an account problem as well as a hardware one. Know how you would get back in.
  • Move authenticator apps carefully when you change phones. Do not wipe the old one until the new one works.

Limits to keep in mind

Two-factor authentication raises the bar, but it is not a guarantee.

  • Some phishing pages are built to capture a code as you type it and use it immediately. This is why you should be as suspicious of phishing emails as ever, and why security keys and passkeys have an advantage.
  • If malware is running on your device, an attacker may be able to act after you sign in.
  • Recovery processes can be a weak spot. If a service lets anyone reset the second step by answering a simple question, the protection is thin.

The advice is still to use it. A second step defeats a very large share of ordinary account takeovers, even though no method is perfect.

For teams

Organizations can require a second step for everyone, which removes the uneven protection that comes from leaving it optional. When people leave, access offboarding should include removing their devices and keys from the system. And if an account is breached despite the extra step, the checklist for account compromise applies as usual.

The complete guide to account security and privacy

A Plain-Language Guide to Securing Your Work Accounts
Read the guide

Keep exploring

Guides from other topics

All topics →