Code2FA
EN
EnglishTiếng Việt中文РусскийEspañol

How to turn on X (Twitter) 2FA with an authenticator app

Code2FA team · Updated · 2 min read

Quick answer

To turn on X (Twitter) 2FA: Settings and privacy → Security and account access → Security → Two-factor authentication → Authentication app. X accepts any TOTP app; save your backup code.

How to turn on X (Twitter) 2FA with an authenticator app

Hijacked X accounts are often used to post crypto scam links. X supports three two-factor methods: text message, authentication app and security key.

Set up an authentication app

  1. Open the menu → Settings and privacy.
  2. Go to Security and account access → Security → Two-factor authentication.
  3. Choose Authentication app. X may ask you to confirm an email first.
  4. X shows a QR code; if you need to type it, choose the can't-scan option to see the key. Save the key.
  5. Scan the QR or paste the key into an app (Google Authenticator, Authy, Duo, 1Password…) or Code2FA, enter the 6-digit code → Verify.

X accepts any standard TOTP app.

Right after enabling

  • Save your backup code for when you lose your phone. See how to store backup codes.
  • Security keys: X lets you use a security key, even as your only method.
  • Temporary passwords: some third-party apps need a temporary password once 2FA is on.

Changing phones

Back up the old phone first. If you still have the key, just add it to the app on the new phone. Losing the phone without the key or backup code makes recovery very hard.

"Your account violated copyright, verify here" messages are a common X scam. Never enter your password or 2FA code through links in messages.

FAQ

Does X (Twitter) work with Google Authenticator?

Yes. X accepts any TOTP app such as Google Authenticator, Authy, Duo Mobile or 1Password; you can also paste the key into Code2FA.

How do I get into X if I lost my phone?

Use the backup code you saved, or re-add the secret key to a new app if you kept it.

Related articles