← All articles
Digital Security Habits

Setting up two-factor sign-in without getting locked out

Two-factor sign-in adds a second check beyond your password. Choosing the right method, saving backup codes and setting things up in the right order makes lockouts much less likely.

A claymation-style character with gray hair sits on a city bench looking at a smartphone while holding a keychain.

Two-factor sign-in asks for a second proof of identity after your password, usually a code from an app, a physical security key or a confirmation on a trusted device. It makes a stolen password far less useful to an attacker, which is why it is one of the most valuable protections for email and financial accounts. The protection itself is not the hard part. The lockout is, and it can follow when a phone is lost, a number changes or no recovery method was ever set up. A skipped step during setup can leave you without a way back in.

The process is straightforward once you have an order. Choose a method, save the recovery options the service offers, confirm that you can sign in with the new method and only then rely on it every day.

Choosing a second factor

Authenticator apps generate time-based codes that change about every 30 seconds, and they work without a phone signal. That makes them a dependable choice for most accounts. Hardware security keys are small devices you plug in or tap, and they resist phishing well because they check the site address before responding. Passkeys work differently, because they replace the password rather than adding a second factor to it. A passkey is a cryptographic key that is usually unlocked with your device's screen lock or biometrics, and it is often synced through your phone's platform account or a password manager. Passkeys also resist phishing because they work only on the site they were registered for, so a look-alike site cannot use them. Some services offer several of these options, so check what each account supports.

Text message codes are a widely offered option and better than nothing, but they are the weakest of the usual choices. Messages can be intercepted, and a fraudster who persuades a mobile carrier to move your number can receive them. Email codes are only as strong as the email account they protect, so they add little when the same password opens both. If a service offers an app or a key, prefer that over text.

Gather recovery options before you start

Before you turn on two-factor sign-in, look at which recovery methods the service provides. Typical options include backup codes, a second authenticator, a second security key, a recovery phone number or a recovery email address. Some services allow more than one, and using two different methods gives you a fallback if one device disappears. Note any identity checks or waiting periods in the recovery process, because they can take time when you urgently need access.

Confirm that the device you plan to use for codes is in your hand and working. Install the authenticator app, make sure it runs on that device and keep it updated. If you plan to use a security key, check that it is registered to the account before you depend on it for everyday sign-ins.

Save backup codes somewhere safe

Many services that support app-based two-factor sign-in generate a set of backup codes during setup. Each code works once and lets you sign in when your main method is unavailable. The service usually shows the list only one time, so copy it before you leave the page. Store it somewhere separate from your phone and computer, such as a printed copy in a secure place at home, or an entry in a password manager that you can open from another device.

Avoid keeping the codes in a plain text file on the same device as the account, or in an email you send to yourself. Each code is consumed when used, and the service may issue a fresh set afterward, so replace your stored list when that happens. Confirm that you saved the full list, since a missing character discovered during a lockout is a hard way to learn.

Set it up in the right order

Follow this sequence for each account so you finish with a working fallback:

  1. Sign in and open the security or two-step verification section.
  2. Choose the method you want and follow the prompts, scanning the code with your authenticator app or pairing the security key.
  3. Enter a code from the app or confirm the key, which proves the method works before the setup continues.
  4. Save the backup codes the service displays.
  5. Add a second recovery method, such as another key or a recovery phone number, if the service allows it.
  6. Sign out, then sign back in with the new method to confirm the whole sequence works.

Only after that test sign-in should you consider the account protected. If the service asks you to confirm a recovery email or phone number, check that it is an address or number you still control. Finish one account before moving to the next, so you do not end up with several half-configured accounts.

When you change phones or lose access

Moving an authenticator to a new phone is an easy step to forget. Some authenticator apps offer a transfer or backup feature, while others require you to scan each account's code again. Do the transfer before you retire the old phone, not after. Keep the old device until codes work on the new one, and remove the old device from the trusted devices list in the account settings.

If you do get locked out, use a backup code, a second method or the service's recovery process. Be cautious about anyone who contacts you offering to restore access for a fee or who asks you to read out a code. A legitimate service does not need a one-time code relayed by a stranger. Review your recovery methods every few months, and again after changing a phone number or email address, so the fallbacks still point to you.