Last checked November 19, 2026

  1. Tech Savvy Mag
  2. Accounts and Security
  3. How to set up an authenticator app and keep your codes safe

How to set up an authenticator app and keep your codes safe

Protect your online accounts by setting up an app authenticator for sign in codes. Learn how to save recovery codes and move them to a new phone safely.

Explained by Beatrix Aldridge

Overhead view of a plain dark slab device lying face down on a pale concrete desk, its back blank and unmarked, a small green

You secure an online account with an app authenticator by scanning a square barcode on your computer screen with your phone camera. The app generates a code that changes on a short timer. You type that number in after your password to prove your identity.

Why an app makes a better lock than a text message

A password alone is a weak defense for your email or bank account. CISA lists application based MFA and text or voice messages among the popular forms of multifactor authentication. Sending a code to a mobile number is a common approach. This method helps stop basic password theft.

Text messages can have a weakness involving cellular networks. An attacker who knows your password may try to intercept your text messages. Criminals can search social media for your date of birth and your home town. They use these details to answer security questions when they call your cellular carrier.

In a SIM swap scam, the attacker impersonates you and tries to trick the support representative into moving your phone number to a new SIM card. The carrier may then route your text messages to the attacker instead of your phone.

An app authenticator generates the security codes locally on the device in your hand. The app does not need a cellular signal to work. It does not even need a Wi-Fi connection. You can open an authenticator app in a concrete basement and get a valid code.

The technical name is time-based one-time password, or TOTP, and the attacker cannot intercept a signal because the app sends no signal. CISA says any multifactor authentication is better than none. Using text messages is a fine choice if an app is not an option. An app can be a tighter lock against determined thieves.

Switch on app codes in your security settings

You must first install an authenticator app from a reputable company. Open the official app store on your phone and download your choice. Choose an app from a developer you recognize. Open the online account you want to secure on a laptop or desktop computer.

A plain dark slab device lying face down on a pale wooden desk beside a small green plant in a ceramic pot and a folded gray

The setup is much easier when you use a computer screen to display the barcode and your phone to scan it. Log in with your username and password. You should add a backup phone number to the account first. This gives you a secondary way to prove your identity if things go wrong.

Find the security menu in your account settings. Look for a section labeled two-factor authentication or two-step verification. You can learn more about how two-factor authentication works to understand the basic concept.

The setup requires a few quick actions on both your computer and your phone.

  • Select the option to add an authenticator app on the website.
  • Leave the QR code displayed on your computer monitor.
  • Open the app on your phone and tap the plus sign to add a new account.
  • Point the phone camera at the computer screen so the QR code fits inside the target box.
  • Look for a new row on your phone screen with the website name and a code.
  • Type that code into the website on your computer before it expires.
  • Click confirm on the computer to lock in the setup.

The website should recognize the code. The math happens entirely in the background. Your phone and the website now share a secret cryptographic key that generates matching numbers.

Save the recovery codes before you close the setup screen

The website will generate a list of recovery codes immediately after you confirm the app connection. These act as backup keys. You need them if you drop your phone in a lake and cannot open your app to get a code.

Do not click away from this screen. Many websites show these backup codes only once. Each code is a random string of letters and numbers. You can use each code exactly once to sign in without your phone.

Copy the codes and store them somewhere safe. You can store them in the built-in password manager on your device. The manager keeps the text locked behind your master password. You might also paste them into a secure digital vault.

You can print the recovery codes on a piece of paper. Many websites provide a grid of single-use codes. You can cross them off with a pen as you use them. Keep that paper in a filing cabinet or a locked desk drawer at home.

Some services will let you generate a fresh batch of codes if you run low. Generating a new batch often invalidates the old ones. Losing your phone without these backup codes means you might be permanently locked out of your account.

Move your codes to a new phone before you wipe the old one

Getting a new phone means you have to move your security app carefully. Your codes do not automatically transfer when you sign in to your email on the new device. The mathematical seeds live specifically on the old phone hardware.

Install your authenticator app on the new phone. Open the app on your old phone and look for the settings menu. Tap the option to transfer accounts or export codes. The old phone will display a large QR code on its screen.

Open the blank app on your new phone. Choose the option to import accounts. Point the new phone camera at the old phone screen. All your accounts and timers will appear on the new device in moments.

Some older apps do not have a camera transfer feature. You will have to sign in to the website using your password and the old app code. You will then delete the old connection in the security settings and set up the new phone from scratch.

Keep both phones on your desk for a few minutes. Sign in to one of your secured accounts on a computer. Type the code from the new phone to verify it. You want to prove the new phone generates working codes before doing anything else.

You should prepare the device before a factory reset to ensure no data is lost. You can safely wipe the old device once you confirm the new app works perfectly.

What to do when a code stops working

A code from your app will sometimes fail when you type it into a website. The website will display an error saying the code is invalid. You might wait for a fresh code and find that the second one fails too.

A common reason for a failing code is a clock error. The app and the website use the exact time of day to do their math. The app will generate a code that the website rejects if the clock on your phone is off.

Some apps include a specific button for this problem. Open the settings inside your authenticator app and look for an option labeled time correction. Tap it to force the internal math to match the global time servers.

A simple settings adjustment will force the phone to check the correct time.

  • Open the main settings on your phone and find the date and time menu.
  • Turn off the switch that sets the time automatically.
  • Turn the switch back on so the phone checks the correct time.
  • Restart your phone to clear out any small software glitches.
  • Open the app and try the new six-digit code on the website.

The link between the app and the account is broken if the codes still fail. Sign in to the account using one of the backup recovery codes you saved earlier. Go to the security settings and delete the app connection. Set it up from scratch by scanning a new QR code.

Why a code typed into a fake site can still be stolen

An app protects you when an attacker tries to guess your password from another computer. The attacker cannot get in without the six digits on your phone screen. The app does not protect you if you type those digits into a trap.

Scammers build fake login pages that look identical to real banks or email providers. They send you a link in a text message claiming your account requires attention. You click the link and type your password into the fake site. The fake site then prompts you for your six-digit code.

You open your app and type the digits into the fake site. The scammer runs an automated script that instantly copies your password and your code. The script pastes them into the real website before your code expires. The scammer is now logged into your real account.

You must always check the web address bar before you type a code. A physical security key is an alternative that resists this kind of attack. CISA says any multifactor authentication is better than none, and that FIDO or WebAuthn is the only widely available phishing resistant method.

A physical key is a small device that plugs into a computer port. It is built to resist fake websites because it checks the web address itself. An app does not know what website you are looking at and will happily give you a code to type anywhere. You provide the final check to ensure the website is real.