Short answer: Go to Settings and privacy > Security and account access > Security, open Two-factor authentication, choose Authentication app and scan the QR code with 2Fa Live.
Last verified 19 November 2026 against the vendor's official help page. Menu names can change, so follow the labels on your screen if they differ.
Before you start
- Access to your X account.
- X says text-message 2FA is limited to Premium subscribers, so an authentication app is the practical choice for free accounts.
- 2Fa Live open in a browser on the device that will hold your codes.
Steps on the web
- Open Settings and privacy. Open Settings and privacy from the app or website menu.
- Go to Security. Choose Security and account access, then Security, then Two-factor authentication.
- Choose Authentication app. Select Authentication app. X works with any TOTP app. Confirm your password if asked.
- Scan the QR code. Scan the QR code with 2Fa Live and enter the code it generates.
- Save the backup code. X generates a backup code; store it safely.
Steps in the mobile app
The mobile app uses the same menu path. X also offers security keys and passkeys under Security.
Scan with 2Fa Live
When X (Twitter) shows its QR code, open 2Fa Live and add a new account by scanning it. The QR code reader page can read the code for you. If you cannot scan, choose manual entry and type the setup key (also called the secret key) that X (Twitter) displays, then give the entry a clear label so you can tell your accounts apart.
Finish by typing the 6-digit code that 2Fa Live shows back into X (Twitter). TOTP codes are time-based and change every 30 seconds by default, so enter the current one. 2Fa Live stores your secrets encrypted in your browser only; nothing is sent to a server.
Backup codes and recovery
X advises backing up the backup code: if you lose your phone or change your number, it is what lets you in.
2Fa Live keeps your data in this browser only, so clearing site data or switching browsers removes your accounts. Create a local backup from the Data Management section after each new account, and store it away from the device you use every day.
Troubleshooting
- Menu labels differ slightly between app versions; search Settings for "two-factor" if you cannot find it.
- If codes fail, set your device clock to automatic.
- If every code is rejected, set your device date and time to automatic and use the next code: TOTP depends on the clock.
- Check that you are copying the code from the X (Twitter) entry in 2Fa Live, not another account.
Source: X (Twitter) official help page. Official X Help page (direct fetch blocked with HTTP 403); steps read from the search excerpt of the official page.