Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save CHANG-CHING-CHUNG/8762c0eb0b80f18801cffeabd1ca54c9 to your computer and use it in GitHub Desktop.

Select an option

Save CHANG-CHING-CHUNG/8762c0eb0b80f18801cffeabd1ca54c9 to your computer and use it in GitHub Desktop.
Adding & Updating GitHub Access Token on Mac

As outlined here, there are a couple of situations where you need to authenticate with GitHub by using an Acces Token:-

  1. If you have Two-Factor Authentication (2FA) enabled.
  2. You are accessing an organisations protected content using SAML Single-Sign On (SSO).

Create an Access Token

In your GitHub account, go to Settings / Developer settings / Personal access tokens and select Generate New Token. Make a note of the token somewhere safe since this is the only chance you get to see it.

Add the token to your local OSX Key Chain

When you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment