Step 2 · about 8 minutes
Turn on two-factor authentication
Start in GitHub settings and add an authenticator app on your phone as a second sign-in check.
- Open GitHub Password and authentication settings. To get there from GitHub, click your profile picture → Settings → Password and authentication.

- Under Two-factor authentication, select Enable two-factor authentication.
- Keep the Setup authenticator app page and its QR code open on your computer.
- Install Google Authenticator on your phone. This is required for this lesson: iPhone / Apple App Store · Android / Google Play. If already installed, open it.
- In the phone app, tap + → Scan a QR code (sometimes labelled Scan barcode). Allow camera access and point your phone at the QR code on your computer screen.
- Find the saved GitHub account in the app’s list. Tap it if needed to view its current six-digit one-time password. Enter that code in GitHub’s Verify the code from the app field and continue.
- Under Save your recovery codes, click Download and save the file somewhere secure that you can reach if your phone is lost.
- Click I have saved my recovery codes, then Done if shown. Check that two-factor authentication is enabled.
