Short answer: on WhatsApp, two-factor authentication is called two-step verification. You turn it on in Settings, Account, Two-step verification, choose a six-digit PIN and add a recovery email. After that, anyone who tries to register your number on another phone needs the PIN as well as the SMS code.

What it protects against
WhatsApp accounts are tied to your phone number. To use the account on a new phone, WhatsApp sends a six-digit registration code by SMS or a call. Scammers who know your number start a registration and then try to trick you into reading the code to them. With two-step verification on, the code alone is not enough: the attacker is also asked for your PIN, which they do not have. It does not stop someone who already has your unlocked phone, and it does not protect against being talked into sharing the PIN itself.
Do not confuse these codes
| Code | What it is | Share it? |
|---|---|---|
| Six-digit SMS or call code | Registers your number on a phone | Never |
| Six-digit two-step PIN | You created it; protects re-registration | Never |
| Backup encryption password or 64-digit key | Protects end-to-end encrypted backups | Never |
How to turn it on
- Open WhatsApp and go to Settings (on iPhone) or the three-dot menu, then Settings (on Android).
- Tap Account, then Two-step verification.
- Tap Turn on or Enable.
- Enter a six-digit PIN. Avoid birth dates, repeated numbers and anything on your social media, and confirm it.
- Add an email address. This is used to reset the PIN if you forget it. Use an email account you control and that is itself protected by two-factor authentication.
- Confirm the email if WhatsApp asks you to, then finish.
Menu names change a little between app versions. If you cannot find it, use the search icon in Settings.
The recovery email matters
If you forget the PIN and did not add an email, WhatsApp can make you wait about seven days before you can register again, and if you do not use the account for a long time under that waiting rule, pending messages may be lost. With a working recovery email you can reset the PIN straight away. Check that the email is correct, and check your spam folder for confirmation mail.

How often will WhatsApp ask for the PIN?
WhatsApp occasionally asks you to enter the PIN inside the app to help you remember it. That is normal and is not a scam when it appears inside the real app. Be suspicious of any message, call or website that asks for the PIN or the SMS code from outside the app.
If you forget the PIN
- On the PIN screen choose “Forgot PIN” and use the recovery email.
- If there is no email, wait out the waiting period shown on the screen and then register again.
- After you are back in, set a new PIN and add an email.
Changing or turning off
In the same Two-step verification menu you can change the PIN, change the email or turn the feature off. Do not turn it off unless you have a good reason.
Other WhatsApp security habits
- Review Linked devices and log out of any you do not recognise.
- Run the Privacy Checkup.
- Turn on app lock with fingerprint or face unlock.
- Be careful with messages that ask you to forward a code, “verify” your account or click a link.
Our full WhatsApp security checklist covers these steps in more detail.
If your account has been taken over
Install WhatsApp on your own phone and register your number again. This logs the attacker out. If they have set a PIN, you may have to wait for the reset period. Warn your contacts that messages from your account were not from you, and report the incident to WhatsApp.
Frequently asked questions
Does WhatsApp support an authenticator app?
Two-step verification uses a PIN rather than an authenticator app code. Passkey and other sign-in options may be added in the future, so check the current menu.
Is the PIN the same as my phone’s lock code?
No. It is separate. Use a different number from your phone passcode.
Will it protect me if someone swaps my SIM?
It helps, because the attacker still needs the PIN to register your number. It is one of the most useful protections against SIM-swap takeovers of WhatsApp.
Related: secure your WhatsApp account and secure your Telegram account.



