How to Set Up 2FA
Step-by-step 2FA setup for Google, Microsoft and Apple accounts, plus where the backup codes live once you are done.
Last updated: Sep 25, 2026 13:41:47
Setting up two-factor authentication takes about fifteen minutes for your three most important accounts, and it is the single highest-value security change most people can make. This guide is the practical sequence: what to prepare, the exact places to click for Google, Microsoft and Apple, how to store the recovery material, and how to prove it works before you need it.
One thing to know before you start: the platforms differ more than the marketing suggests. Google and Microsoft issue a Base32 key that any authenticator app can use. Apple does not — Apple’s two-factor is tied to trusted devices, and you cannot add an Apple ID to Google Authenticator. That difference shapes the whole setup, so it is worth reading the section that applies to you rather than skimming all three.
Before you start
- Pick one authenticator app and install it. Bitwarden, 1Password, Aegis, 2FAS, Microsoft Authenticator, Google Authenticator — any standard TOTP app works for the Google and Microsoft sections.
- Have somewhere to put backup codes. A password manager entry, or a printed sheet. Not a chat with yourself, not a screenshot in a synced photo library.
- Keep the old method working until the new one is confirmed. Do not remove SMS or the old app until a full login has succeeded with the new factor.
- Work on the account you can least afford to lose first — usually email. It is the recovery route for everything else.
Which app to choose
Any standards-compliant TOTP app produces identical codes for the same secret. The differences are in backup, export and where the secrets live:
| App | Best for | Export / backup | Watch out for |
|---|---|---|---|
| Bitwarden, 1Password, KeePassXC | People already using a password manager | Encrypted vault, exportable | The app holding the codes is also the thing you log into — protect it with the strongest factor |
| Aegis (Android) | Local-only, no cloud | Encrypted plaintext-capable export | Manual backups; nothing syncs for you |
| 2FAS (iOS, Android) | Cross-platform with encrypted backup | Encrypted backup file | Backup file is only as safe as where you put it |
| Google / Microsoft Authenticator | Simplicity, platform integration | Limited — no plaintext export | Moving phones is harder; migration depends on the vendor’s flow |
| Passkey / security key | Accounts that matter most | Not applicable — key stays in hardware | Register two keys, keep one off-site |
If you already use a password manager, its built-in TOTP is usually the least friction and the most survivable choice. If you deliberately want secrets to live away from your password vault, Aegis or 2FAS with an encrypted backup is the sensible split.
If you want the strongest option
A FIDO2 security key (or a passkey) is the only factor that survives a well-built phishing page, because the credential is bound to the site’s domain. Setup is mechanically similar to an authenticator app but with one rule:
- Buy two keys. One that stays on your person, one stored somewhere safe. A single hardware key is a single point of failure.
- Register both on the same accounts, at the same time, while you still have access.
- Label them and test both before relying on either.
- Check platform support. Google, Microsoft, GitHub and Apple ID all support security keys; many banks still do not.
Google account
Google calls it 2-Step Verification, and it supports several second factors at once. You can enable more than one, which is the recommended setup: an authenticator app as the default, backup codes as the fallback, and a passkey or security key where available.
- Open your Google Account → Security → 2-Step Verification.
- Choose Authenticator (or “Set up authenticator”). A QR code appears.
- Scan it with your app. If scanning fails, choose “Can’t scan it?” and copy the Base32 setup key shown — this is the only time Google will display it.
- Enter the six-digit code the app shows to confirm.
- Still on the same screen, generate and save backup codes. They are single-use; ten of them cover ten emergencies.
- Optionally add a passkey or a security key. If offered, take it — it is the only factor that resists a phishing page.
Google also offers “Google prompts”, which send a tap-to-approve notification. They are convenient, but they are also the classic target of approval fatigue: if a prompt arrives when you are not logging in, someone already has your password. Deny it and change the password immediately.
Microsoft account
Personal Microsoft accounts and work accounts use the same idea but different menus, and work tenants may enforce number matching on push prompts.
- Go to account.microsoft.com → Security → Advanced security options.
- Under “Two-step verification”, choose Turn on, then Add a new way to sign in.
- Pick Authenticator app, then “I can’t scan the QR code” if you need the setup key as text.
- Confirm with the six-digit code from the app.
- Add a recovery method you can actually reach — a second email, or a phone number for account recovery only.
If you are on a work account, the organisation may require the Microsoft Authenticator app specifically and may disable SMS. Follow the prompt the tenant shows; it overrides the personal-account flow.
Apple ID
Apple’s two-factor authentication works differently, and this trips people up constantly. There is no Base32 key and no QR code, so you cannot enrol an Apple ID in Google Authenticator or any third-party app. Instead:
- Codes are displayed automatically on your trusted devices — an iPhone, iPad or Mac already signed in.
- If no trusted device is available, a code can be sent to your trusted phone number by SMS or automated call.
- You can set a recovery key: a 28-character string that, together with a trusted device, lets you reset the password. Store it offline — losing it and the devices means losing the account.
- Account Recovery is the fallback when everything else is gone, and it can take days by design.
To check the setting: Settings → [your name] → Sign-In & Security → Two-Factor Authentication. If it says “On”, you are protected; the useful follow-up is confirming that your trusted phone number is current and that at least two devices are trusted.
The accounts worth doing next
After email and the platform accounts, these carry the most downstream risk:
- GitHub / GitLab — source code and deployment keys. Settings → Password and authentication → enable 2FA, then download the recovery codes.
- Banking and payment apps — often their own mechanism, but check whether an app-based factor is offered instead of SMS.
- Password manager — it holds everything else, so it should have the strongest factor available, ideally a hardware key.
- Cloud consoles (AWS, Azure, Cloudflare) — an attacker with console access can bill you or redirect your domain.
Store the backup codes properly
This is the step that decides whether a lost phone is an inconvenience or a catastrophe:
- Put them somewhere you can reach without the phone. That rules out “only saved in the authenticator app”.
- A password manager entry is fine if you can open it on another device; a printed sheet in a drawer is fine too, and often better, because it is not reachable by malware.
- Label them with the account and the date, and note which app holds the corresponding TOTP entry.
- Regenerate after any device change. Old lists are often invalidated when you re-enrol.
Full details per platform: 2FA backup codes.
Prove it works before you need it
- Sign out completely — not just close the tab — and sign back in using the new factor.
- Test one backup code on a throwaway session, then generate a fresh set if the service consumed it.
- Check a second device: can you log in from a laptop if the phone is unavailable? If not, fix that before you rely on it.
- Confirm recovery details — the recovery email and phone number must be reachable and current.
When something goes wrong
- “The code is invalid.” Usually the device clock is more than 30 seconds off, or the code rotated while you were typing. See 2FA code not working.
- “I can’t scan the QR code.” Use the manual setup key. If the camera is blocked, copy the key and type it into the app.
- “I no longer have the setup key.” Most services will not show it again. Use a backup code, a signed-in session, or account recovery. See how to find your 2FA key.
- “I lost the phone.” Backup codes first, then a trusted session, then provider recovery — in that order. Details in lost your phone.
Moving from SMS to an app
If you already have SMS codes, you are better off than with a password alone, but the upgrade is worth it:
- Add the authenticator app as an additional method — do not remove SMS yet.
- Sign in once using the app to confirm it works.
- Remove the SMS method only after a successful app login.
- Keep a recovery phone number on file for account recovery, even if it is not used for codes.
SMS remains vulnerable to SIM swapping, where an attacker ports your number and receives your codes. App-based TOTP has no such dependency.
Five setup mistakes that cost people accounts
- Skipping the backup codes. The single most common cause of permanent lockout. The codes take ten seconds to save and are gone from the screen forever.
- Saving the codes only on the phone. The phone is the device you are planning for the loss of. If the codes live there too, you have two copies of a single point of failure.
- Enabling 2FA on one account and stopping. The email account is the recovery path for everything else; an unprotected email quietly undoes the protection on ten other services.
- Keeping SMS as the only method. Better than nothing, but vulnerable to SIM swapping. Add an app, verify it works, then remove SMS.
- Never testing the flow. People discover the recovery path is broken at the worst possible moment. Sign out and back in once, on a second device, while everything still works.
The checklist
- Authenticator app installed and one account enrolled.
- Email account protected first, then banking, then everything that can reset others.
- Backup codes saved somewhere reachable without the phone.
- Recovery email and phone current.
- One full sign-out and sign-in tested.
- Automatic time sync on for the device that generates codes.
If you need a code while the app is elsewhere, the 2FA code generator runs entirely in your browser. For the concepts behind the codes, see what 2FA is.
Frequently asked questions
Which authenticator app should I use?
Any standards-compliant app produces identical codes. If you already use a password manager, its built-in TOTP is the least friction; otherwise Aegis or 2FAS with an encrypted backup is a good split.
Does Apple ID work with Google Authenticator?
No. Apple's two-factor authentication is tied to trusted devices and does not use a Base32 key, so an Apple ID cannot be enrolled in a third-party TOTP app.
Where are my Google backup codes?
In the 2-Step Verification settings, under Backup codes. They are generated on demand and shown once, so save them when they appear.
Do I need 2FA on every account?
Start with email, then banking and anything that can reset other accounts. Email matters most because it is the recovery route for almost everything else.
What if I lose the phone after setup?
Use a backup code first. If none are saved, use a signed-in session or the provider's recovery process - re-enrolling requires access you may no longer have.
Does 2FA slow down every login?
Not usually. Most services offer "remember this device" for 30 days, so the second factor is checked once per device rather than once per session.