Quick answer: what to do now
- Turn on 2-step verification for your email first: it recovers all your other accounts.
- Then turn it on for WhatsApp, social media and your phone's account.
- Choose an authenticator app or a passkey over SMS.
- Keep your backup codes away from your phone.
- Never share the code with anyone, not even someone claiming to be support.
What's your case?
Two-factor authentication: how to turn it on in 10 steps
Two-factor authentication (2FA), also called 2-step verification, asks for a second proof besides your password: a code, an approval on your phone or a passkey. So even someone who learns your password can't get in.
- Leaked passwordBreached sites expose passwords every day.Turn it on for email →
- Reused passwordOne leaked password opens every account that uses it.Protect the main ones →
- WhatsApp cloningA scammer tries to register your number on another phone.Turn it on in WhatsApp →
- SIM swapThe scammer gets your text messages.Use an app →
- Fake sign-in pageIt steals your password and code.Use a passkey →
- Lost phone with no backupYou get locked out of the account.Keep the codes →
1Turn it on for Google (Gmail, YouTube, Android)
Start with email: it's how you recover the passwords of your other accounts.
- Open myaccount.google.com and sign in.
- Tap Security & sign-in.
- Under How you sign in to Google, choose Turn on 2-Step Verification and follow the steps.

Google recommends Google prompts on your phone over text message codes, because they also help against SIM swaps.
2Turn it on for your Microsoft account (Outlook, Hotmail, Xbox)
- Go to account.microsoft.com/security.
- Select Manage how I sign in.
- Under Additional security, for Two-step verification, choose Turn on and follow the instructions.
Microsoft recommends the Microsoft Authenticator app and says it will phase out SMS for signing in to personal accounts. Add a second recovery email too.
3Check your Apple Account (iPhone, iPad, Mac)
iPhone and iPad
Settings › your name › Sign-In & SecurityTurn on two-factor authentication and follow the instructions.
Mac
System Settings › your name › Sign-In & SecurityOn the web, go to account.apple.com and tap Upgrade Account Security.
Apple explains that most accounts already have two-factor authentication on. Keep a trusted phone number up to date to get the code.
4Turn on two-step verification in WhatsApp
Use when: you want to stop someone cloning your WhatsApp, even if they get the 6-digit SMS code.
Android
⋮ › Settings › Account › Two-step verificationTap Turn on, create a strong password and confirm it.
iPhone
Settings › Account › Two-step verificationTurn it on and create the password the same way.
Add an email address you can access: WhatsApp uses it to help you reset the password if you forget it.
5Turn it on for Facebook and Instagram
- On Facebook, click your profile photo, then Settings & privacy › Settings.
- Open Accounts Center › Password and security › Two-factor authentication.
- Choose the account (Facebook or Instagram, if both are in the same Accounts Center) and the method: security key, authenticator app or SMS.
Facebook warns not to save the browser on public or shared computers.
6Switch from SMS to an authenticator app
Use when: the service offers an "authenticator app" or "authentication app".
Google explains that text or call codes can be targeted by attacks on your phone number. An authenticator app creates the code on your phone, with no SMS:
- Install an authenticator app, such as Google Authenticator or Microsoft Authenticator.
- On the account's security page, choose the authenticator app. The site shows a QR code.
- Scan the QR code with the app and type the 6-digit code it shows.

The app works even without internet or mobile service, as Google points out.
7Keep your backup codes
Backup codes let you sign in when you don't have your phone. Google gives 8-digit codes and Facebook gives 10 recovery codes.
- Get the codes on the account's security page.
- Print or download them and keep them somewhere safe, off your phone.
- Each code works only once. Get new ones when they run out.

For a Microsoft account, which doesn't use these codes, keep two emails and a recovery phone up to date.
8Use a passkey or a security key
Passkeys use your phone's fingerprint, face or screen lock. Security keys are small USB or NFC devices.
- Google recommends security keys to protect against phishing.
- CISA, the US cybersecurity agency, considers FIDO/WebAuthn methods, such as passkeys and security keys, the most phishing-resistant.
Look for Passkeys or Security keys on each account's security page.
9Never share the code with anyone
Use when: someone asks for "the code that just arrived on your phone".
- No legitimate company asks for the code by message or phone. Whoever asks is trying to get into your account.
- Don't approve a sign-in request you didn't make. CISA warns about attacks that send many approval requests until the person accepts.
- Don't share your backup codes, as Google advises.
Got a strange link or message? See the phishing scam guide.
10Lost your phone? Get back in
- Google: use one of your backup codes to sign in.
- Facebook: use one of your recovery codes.
- Microsoft: without any contact method, the password alone isn't enough, and recovery can take up to 30 days.
- WhatsApp: if you forgot your two-step password, use the email you added to reset it.
If you think someone got into your account, follow the account hacked guide. To recover your email, see recover your email password.
Which method to use
| Method | Protection | When to use |
|---|---|---|
| Passkey | Very high, phishing-resistant | Whenever the service offers it (step 8) |
| Security key | Very high, phishing-resistant | Your most important accounts (step 8) |
| Phone prompt | High | Google and Microsoft (steps 1 and 2) |
| Authenticator app | High | Instead of SMS (step 6) |
| SMS or call | Basic | Only if there's no other option |
| Backup codes | Plan B | When you don't have your phone (step 7) |
| WhatsApp password | High against cloning | Always, on WhatsApp (step 4) |
Frequently asked questions
What is two-factor authentication?
It's a second proof of identity besides your password, such as a code, an approval on your phone or a passkey. Even with your password, someone else can't get in.
Are 2-step verification and two-factor authentication the same?
In practice, yes. Each company uses its own name: Google and WhatsApp say 2-step verification; Apple and Facebook say two-factor authentication.
Which account should I protect first?
Your main email, because it recovers the passwords of your other accounts. Then WhatsApp, social media, your bank and your phone's account.
Is SMS safe for getting the code?
It's better than nothing, but it's the weakest method. Google explains that text codes can be targeted by attacks on your phone number. Choose an authenticator app or a passkey instead.
How do I turn on two-step verification in WhatsApp?
Go to Settings › Account › Two-step verification, tap Turn on, create a password and add an email address.
What are backup codes?
They're one-time codes for signing in when you don't have your phone. Print or download them and keep them somewhere safe.
I lost my phone. How do I sign in?
Use a backup code. Without one, follow the service's account recovery, which can take days. For Microsoft, up to 30 days.
Someone asked for the code sent to my phone. What now?
Don't share it. It's a scam. If you already did, change the account password right away and check the connected devices.
Do I have to type the code every time?
No. The code is usually requested on new devices. Apple only asks again if you sign out, erase the device or change your password.
What is a passkey?
It's a way to sign in without a password, using your phone's fingerprint, face or screen lock. It's one of the most phishing-resistant methods.
Related content
More practical solutions in Digital security.
Account Hacked: Immediate Steps to Protect Your Access
Learn how to respond quickly if you suspect that your email account, social media account, or application has been accessed without authorization.
Computer Virus: Warning Signs and How to Remove Threats
Learn how to identify signs of viruses, malware, and malicious programs on your computer and take safe steps to protect your files and privacy.
Phishing Scam: How to Identify Fake Links and Messages
Learn how to recognize phishing attempts through email, SMS, messaging apps, and social networks to protect your personal and financial information.
Sources
- Google Account Help: turn on 2-Step Verification
- Microsoft Support: how to use two-step verification with your Microsoft account
- Apple Support: two-factor authentication for Apple Account
- WhatsApp Help Center: how to manage two-step verification settings
- Facebook Help Center: two-factor authentication
- CISA: More than a Password
The images in this guide are illustrations made by Fixfy. Menu names may change with the app or system version.