Computers & Electronics
41,169 views
25 min · 3 min read
7 steps
Intermediate

How to set up two‑factor authentication (2FA) using authenticator apps and backup codes

Two-factor authentication (2FA) adds a second layer of security to your accounts by requiring something you know (password) plus something you have (an authenticator app) or something you can use later (backup codes). This guide walks you through setting up an authenticator app and generating backup codes so you can sign in securely and recover access if you lose your device. Expect to spend about 10–20 minutes per account and keep backup codes in two safe places.

Verified by pleasexplain editors
  1. Step 1: Choose an authenticator app

    Pick a well-known app like Google Authenticator, Microsoft Authenticator, or Authy and install it on your phone or tablet. Reason: trusted apps follow standard TOTP (time-based one-time password) rules and are supported by most services. Allow about 2–3 minutes to download and open the app.

    [Illustration: smartphone screen showing app icons with an authenticator app highlighted]

  2. Step 2: Enable 2FA in account settings

    Sign into the online account, go to Security or Login settings, and find Two-Factor Authentication or 2-Step Verification. Click to start setup; services generally show a QR code or a secret key. Reason: you must initiate from the account to link the specific service and device. Allow 1–2 minutes to navigate menus.

    [Illustration: web account security settings page showing a QR code area]

  3. Step 3: Scan the QR code or enter key

    Open your authenticator app, choose Add Account or Scan a QR code, and scan the on-screen QR code. If you cannot scan, type the 16–32 character secret key manually. Reason: scanning is fastest; manual entry is a reliable fallback. Expect 30–60 seconds for scanning and entry.

    [Illustration: phone camera framing a QR code displayed on a laptop screen]

  4. Step 4: Verify the generated code

    When the app shows a 6-digit code, type it into the website’s verification field and submit. The website will confirm the link; if it fails, wait for the next code cycle (usually 30 seconds) and retry. Reason: verification proves the clock and secret are synchronized. Allow 30–60 seconds for this step.

    [Illustration: close-up of a 6-digit code on a phone with a submit button on a browser]

  5. Step 5: Save backup codes securely

    After 2FA is enabled, your account will offer backup or recovery codes—usually 5–10 single-use codes. Download, print, or copy them to a password manager and store a physical copy in a safe place. Reason: backup codes let you regain access if you lose your device. Take 2–5 minutes to secure them.

    [Illustration: printed paper with a list of one-time backup codes next to a locked safe]

  6. Step 6: Set up an additional recovery method

    Add at least one secondary recovery option such as a second authenticator app on a spare device, an SMS number you control, or a hardware security key. Reason: redundancy prevents lockout if one method becomes unavailable. Plan 5–10 minutes to configure the extra method.

    [Illustration: two smartphones side by side both showing authenticator app codes]

  7. Step 7: Test sign-in and store instructions

    Log out and sign back in to test password plus authenticator code and try one backup code to confirm it works. Store a short written instruction sheet (account name, date set up, location of backup codes) with your physical backup. Reason: testing avoids surprises during emergencies. Allow 5–10 minutes for full testing.

    [Illustration: Test sign-in and store instructions]


  • Use a reputable password manager to store backup codes and secret keys for quick recovery
  • Enable 2FA on your email account first because it's often used for password resets
  • Keep a printed copy of backup codes in a locked file or safe deposit box rather than loose in a wallet
  • If you use multiple devices, register the authenticator on at least two devices to reduce risk of lockout
  • Regularly (every 6–12 months) review and refresh recovery options and backup code stock
  • If changing phones, use the authenticator app’s export/import function or re-scan QR codes on the new device to transfer accounts

  • Do not store backup codes or secret keys in plain text files on shared or cloud-synced folders without encryption
  • Avoid relying solely on SMS for recovery because text messages can be intercepted or SIM-swapped
  • Do not discard old backup codes after use without confirming you have fresh, unused codes available for future recovery

Was this guide helpful?