How to
Turn on two-factor authentication
Protect your account with a code as well as your password, save the backup codes and, if you want, add an authenticator app or a passkey.
With two-factor authentication, someone who has your password can't sign in without the code we send you. You turn it on in Security, in your settings (your avatar, at the top right, and Settings). You need a password on your account: if you sign in with Google or GitHub, add one first in Connected accounts.
- backup codes
- 10
- validity of the email code
- 3 min
- without asking on a trusted device
- 30 days
Step by step
Select the switch
In Two-factor authentication (2FA), select the switch and enter your password in Confirm your password.
Save the backup codes
Select Copy or Download and keep them off this device. They're your way out if one day you can't receive the email. Select Next.
Finish
Select Done. Account protection becomes active and you get an email letting you know.
From now on, when you sign in with the password, Google or GitHub, we send a 6-digit code to your email. If you tick Trust this device for 30 days, that browser doesn't ask for it for 30 days.
Add an authenticator app
If you'd rather not depend on email, select Set up in Authenticator app, confirm your password, scan the QR code with the app (Google Authenticator, Microsoft Authenticator or another one) and enter the 6 digits it shows. When you sign in, you can choose between the app and the email. If you change phones, select Change phone: it creates a new key for the new phone and gives you new backup codes.
Sign in without a code: passkeys
A passkey signs you in with your device's fingerprint, face or PIN, without a password and without a code: they're already two factors. Create one in Passkeys, with Add passkey, on each device you use. Details in Security.
Turn it off
Select the same switch and confirm your password. Your account goes back to asking only for the password, and we let you know by email.
Tip
If you lose access to the email and the app, sign in with a backup code. How, in Recover access to your account.