Authenticating to GitHub using the browser

You can use the web authentication flow to sign in to GitHub Desktop.

  1. In the upper-left corner of your screen, select the GitHub Desktop menu.

    The GitHub Desktop menu in the Mac menu bar

  2. Click Preferences.

    The Preferences value in the GitHub Desktop drop-down menu

  3. In the Preferences window, select Accounts.

    The Accounts pane in the Preferences window

  4. Under "GitHub.com," click Sign In.

    The Sign In button for GitHub

  5. In the Sign in pane, click Sign in using your browser.

    The Sign in using your browser link

  6. To authenticate to GitHub, type your GitHub.com credentials and click Sign in.

    The Sign In button for GitHub in browser

  7. If you have configured two-factor authentication for GitHub, do one of the following:

  • If you set up 2FA via SMS, retrieve your 2FA code from an SMS message.
  • If you set up 2FA with a TOTP application, generate a 2FA code.
  1. Return to GitHub. In the prompt, enter your 2FA code, then click Verify.

    The 2FA Authentication code field

  2. After GitHub authenticates your account, return to GitHub Desktop.

  1. In the upper-left corner of the window, select the File menu.

    The GitHub Desktop menu in the windows menu bar

  2. Click Options.

    The Options value in the Settings drop-down menu

  3. In the Options window, select Accounts.

    The Accounts pane in the Options window

  4. Under "GitHub.com," click Sign in.

    The Sign In button for GitHub

  5. In the Sign in pane, click Sign in using your browser.

    The Sign in using your browser link

  6. To authenticate to GitHub, type your GitHub.com credentials and click Sign in.

    The Sign In button for GitHub in browser

  7. If you have configured two-factor authentication for GitHub, do one of the following:

  • If you set up 2FA via SMS, retrieve your 2FA code from an SMS message.
  • If you set up 2FA with a TOTP application, generate a 2FA code.
  1. Return to GitHub. In the prompt, enter your 2FA code, then click Verify.

    The 2FA Authentication code field

  2. After GitHub authenticates your account, return to GitHub Desktop.

Ask a human

Can't find what you're looking for?

Contact us