Getting a six-digit code by text message when you sign in is much safer than using a password alone. However, text codes are the weakest type of two‑step sign‑in (also called two-factor authentication).
When an account gives you the choice, switch from text codes to an authenticator app or a security key. Start with your primary email and your financial accounts.
How the three options compare
When you turn on two‑step sign‑in, you usually choose from three tools. Here is how they work, from weakest to strongest:
Text message codes. The website texts a temporary six-digit number to your phone. This stops a stranger who only knows your password. However, a criminal can trick your phone company into moving your phone number to their own phone. This is called a SIM swap. Once they have your number, your text codes go to them instead of you. The National Institute of Standards and Technology (NIST) treats sending codes over the phone network, by text or voice call, as a “restricted” method1.
Authenticator apps. An authenticator app is a free app on your phone (such as Google Authenticator, Microsoft Authenticator, or Apple’s built-in Passwords app) that makes new six-digit codes every 30 seconds. Because the codes are made right on your phone and never travel as text messages, a SIM swap cannot steal them.
Security keys and passkeys. A security key is a small device you plug into your computer or tap against your phone. A passkey is a digital version saved on your phone or computer that unlocks with your fingerprint, face, or screen lock. Both check the real website address before they work. Even if a scammer tricks you with something like a fake Amazon text that leads to a phony login page, a security key or passkey will refuse to sign in.
What an authenticator app cannot stop
An authenticator app protects you from phone number theft, but a scammer can still trick you into handing over the code yourself.
If you type an app code into a fake website, or read it to a caller pretending to be your bank, the scammer can use it right away. Knowing what to do if someone asks for a verification code is just as important as picking the right tool.
For example, a scammer might call pretending to be security and ask you to read out a code:
What the caller says
This is Google security. We detected a suspicious login attempt. To verify it was not you, open your authenticator app and read me the six-digit code.
Incoming call
Google security
mobile
Red flags on this call
Steps
The biggest worry when changing sign‑in settings is getting locked out of your account. Follow this checklist in order so you always have a working way back in.
How to switch from text codes to an authenticator app
0 of 7 done
Common questions
Is a text code enough if my bank only offers text codes?
Yes, keep using it. A text code is much better than using only a password. Check if your bank’s mobile app lets you approve sign‑ins by tapping a prompt inside the app, which is safer than a text message. Only approve a prompt you started yourself, and deny any sign‑in request you did not expect. Above all, never read a bank code to anyone on the phone.
Someone is sending me verification codes I did not ask for. What should I do?
If the codes are for an account you own, someone has your password and is trying to sign in. Do not reply to the text. Open a web browser, go directly to that company’s website, and change your password right away. Our guide to what unexpected verification codes mean explains each kind of surprise code.
What happens if I lose my phone after I switch to an authenticator app?
You will use the paper backup codes you saved in Step 4 to sign in. Many authenticator apps also let you back up your codes to your Apple or Google cloud account, so they appear automatically when you set up a new phone.