Turning On Two-Factor Sign-In
Add a code from your phone on top of your password, and save the recovery codes that get you back in if you lose it.
Open Security
From Settings, open Security. The Two-factor row shows whether it is on, and opens the setup.
Ctrl+K and typing "2fa" or "recovery codes" gets you there directly.Install an authenticator app, if you have not
Any of them work. The app generates a six-digit code that changes every thirty seconds, and it works with no signal and no data.
Scan the square
Start setup and point your authenticator app at the square on screen. If you are setting this up on the same device, enter the key printed beside it instead.
Enter the code it shows
This is the step that turns it on. Nothing changes until a code from your app has been checked, so an app that did not scan properly cannot lock you out.
Turning it on signs you out everywhere else, so expect to sign in again on your other devices.Save the ten recovery codes
Copy or download them and keep them somewhere you can reach WITHOUT your phone. A password manager or a printed sheet both work; a photo in your gallery does not, because that is on the phone you have lost.
They are shown once. If you lose them, issue a new set from Security.If you lose your phone
Enter one of your recovery codes instead of a six-digit code when you sign in. That gets you in and turns two-factor off, so set it up again on a device you still have.