X provides four ways to add a second check to your login, alongside backup codes for the day something goes wrong. The options are not equal. One is restricted to paying subscribers, one requires an initial payment and one only works if you keep a device nearby. Below I compare them on the points that matter: who can use them, what they protect against and what happens if you lose your second factor.
Which login protections does X offer?
X supports text message codes, authentication apps, physical security keys and passkeys, and it issues backup codes for recovery.
The first three are traditional two-factor methods: you enter your password and then prove that you hold a second thing. A passkey works differently. It replaces the password step on a device you already trust, using the phone’s own lock screen or fingerprint as the check.
| Method | Who can use it | Main weakness | Cost |
|---|---|---|---|
| Text message | X Premium subscribers only (since March 20, 2023) | SIM swapping, delayed texts | Premium subscription |
| Authentication app | All accounts | Phone loss without a backup | Free |
| Security key | All accounts | Losing the key itself | Price of the hardware key |
| Passkey | X apps on iOS and Android | Tied to your device or cloud keychain | Free |
| Backup codes | Anyone with 2FA turned on | Useless if lost or never written down | Free |
Can a free account still use text message codes?
No: since March 20, 2023, text message two-factor authentication on X has been limited to paid subscribers.
In February 2023, Twitter announced the change. Accounts without a subscription that had been using SMS codes were given 30 days to switch to a different method. After this period, text-message 2FA was turned off for them. The company also said availability for subscribers could vary by country and carrier. If you are not paying for Premium, your realistic options are therefore an authentication app, a security key or a passkey.
While this may initially appear disappointing, text codes are actually the weakest of the four options. If a criminal manages to persuade your mobile carrier to move your number onto a new SIM, they will also receive your codes. In addition, the X Help Center warns that texts can arrive late, and suggests waiting at least two minutes before requesting a new code.
Is an authentication app good enough for most people?
Yes, an authentication app is the best free option for most accounts, as long as you also save a backup code.
Any app that generates time-based one-time passwords can be used. Examples named on X’s help pages include Google Authenticator, Authy, Duo Mobile and 1Password. The app shows a six-digit code which changes every 30 seconds. As nothing travels over the phone network, SIM swapping does not affect it.
The trade-off is the phone. Should it break, be stolen or be wiped, the codes go with it, unless your app syncs to a cloud account. Before you close the setup screen, check whether your app backs up its entries. Also make sure that your X backup code is stored somewhere off the phone.
When is a security key worth buying?
A security key is worth it for accounts that would hurt to lose, such as a business, a newsroom or anyone who gets targeted by phishing.
A security key is a small USB, NFC or Lightning device that you tap or plug in when you log in. Its big technical advantage is phishing resistance. As the key checks which website is asking, a fake login page on a look-alike domain gets nothing useful, even if you typed your password into it. A code from an app or a text can be phished, but a key cannot be tricked that way.
On X, you can use a security key as your only second factor. Within the two-factor settings, you can also add more than one key. It is sensible to register two and keep the spare at home. Should you only have one key and it falls out of your pocket, you will need to resort to your backup codes.
How is a passkey different from two-factor authentication?
A passkey lets you sign in without typing your password at all, using your phone’s screen lock instead.
X added passkeys on iOS in early 2024 and began rolling them out on Android in August 2024. On an iPhone, the help page puts the setting under Settings and privacy, followed by Security and account access and then Security. Finally, select Additional password protection. Passkeys sync between Apple devices using iCloud Keychain.
There are two limits worth knowing. Firstly, passkeys are optional. Secondly, X’s help page says it is not yet possible to sign up with a passkey instead of a password. Your account still has a password behind it, so keep that password strong and unique.
What happens if you lose your second factor?
You log in with a backup code, which is why you should save one the moment you turn on two-factor authentication.
X automatically creates a backup code for you when you enable 2FA in the iOS or Android app. You can also generate a backup code on x.com. You can have up to five active backup codes at a time, and these must be used in the order they were generated. Either write your current code on paper or save it in a password manager. However, avoid keeping it as a screenshot in your camera roll, as it lives on the same phone you might lose.
Which setup should you pick?
Use an authentication app or a passkey for everyday accounts, add a security key for high-value accounts, and always keep a backup code offline.
A quick checklist for setting it up:
- Turn on two-factor authentication in Settings and privacy, under Security and account access.
- Pick an authentication app if you want a free method that works everywhere.
- Add a passkey on your phone if you want faster logins.
- Register two security keys if the account is a business or press account.
- Save a backup code off your phone before closing the settings page.
- Secure the email address on the account, since it can reset your X password.
FAQ
Do I need X Premium to use two-factor authentication?
No. Only the text message method requires a subscription. Authentication apps, security keys and passkeys are available without Premium.
Can I use more than one method at the same time?
Yes. You can enable more than one method, and X lets you add several security keys from the two-factor authentication settings.
Do backup codes expire after one use?
Each backup code works once. You can have up to five active codes, and X requires them to be used in the order they were created.
Is a passkey safer than an authentication app?
Passkeys resist phishing because they are tied to the real site, while app codes can be typed into a fake page. Your account still has a password, though, so keep it strong.