GitHub Logo

How to Enable Two-Factor Authentication (2FA) on GitHub

Follow these steps to set up two-factor verification for your GitHub account.

1
Step 1 :Download Authenticator App

Download and install the Authenticator App from your device's App Store.

2
Step 2 :Setup Step

Log in to your account on the GitHub website, click your profile photo in the upper-right corner, then select "Settings".

3
Step 3 :Setup Step

In the "Access" section of the sidebar, click "Password and authentication".

4
Step 4 :Setup Step

In the "Two-factor authentication" section of the page, click "Enable two-factor authentication".

5
Step 5 :Setup Step

In this step, a QR code containing the secret key is displayed. Next, you need to use our Authenticator App to scan this QR code. Please keep this popup open to complete the setup.

6
Step 6 :Scan QR Code in App

Open our Authenticator App, tap the '+' button at the top right of the screen, and then hold your device near the computer screen to scan the QR code.

GitHub Step 6 Image GitHub Step 6 Image
7
Step 7 :Get Dynamic Verification Code

After successfully scanning, a 6-digit code will appear in your App. Please note that this code refreshes every 30 seconds.

GitHub Step 7 Image
8
Step 8 :Setup Step

Return to the GitHub webpage, enter the 6-digit code displayed in step 6, and then click "Verify".

9
Step 9 :Setup Step

Under "Save your recovery codes", click "Download" to download your recovery codes to your device. Save them to a secure location because your recovery codes can help you get back into your account if you lose access.

10
Step 10 :Setup Step

After saving your two-factor recovery codes, click "I have saved my recovery codes" to enable two-factor authentication for your account.

11
Step 11 :Setup Successful

Now, you have successfully setup 2FA for your GitHub account. From now on, when you attempt to sign in to your GitHub account, you will need to use our Authenticator App.

App Icon

Protect Your Account with Authenticator

Supports secure iCloud sync, Apple Watch access, and extremely simple & safe backup import.

Download on App Store