You need a password to turn on 2FA. If you only sign in with Google or GitHub, set a password first in the Security section of Settings > Profile.
Enabling 2FA
1
Open security settings
Go to Settings > Profile and find the Security section.
2
Turn on two-factor authentication
Turn on the Two-factor authentication toggle. If you haven’t confirmed your password in the last few hours, you’ll be asked to confirm it.
3
Scan the QR code
Open your authenticator app (for example Google Authenticator, Authy, or 1Password) and scan the QR code on screen, or enter the setup key manually. Click Continue.
4
Enter the verification code
Type the 6-digit code from your authenticator app and click Confirm.
5
Save your recovery codes
Click Recovery codes next to the toggle, then View Recovery Codes. Save the codes somewhere secure — they’re the only way to access your account if you lose your authenticator device.
Each recovery code can only be used once. If you run low, click Regenerate Codes to get a new set — the old codes stop working.