GitHub APINew featureinfo

GitHub CLI adds opt-in expiring, auto-refreshing OAuth tokens Oct 21, 2026

Detected
Oct 22, 2026
Effective
Oct 21, 2026
Confidence
72%

What changed

GitHub CLI now supports opt-in expiring, auto-refreshing OAuth tokens as a new security feature for client apps. This is an optional authentication enhancement released on October 21, 2026.

What to do

No action required; developers can opt in to expiring OAuth tokens via GitHub CLI for improved security. Review GitHub CLI documentation for configuration details.

Affected

header: Authorization (OAuth token)model: OAuth token (expiring/auto-refreshing)

Source: github.blog (GitHub's own page, checked by Breakwatch)

Is your code affected?

Search your repositories for the GitHub SDK and the names above:

npm: @octokit/restnpm: @octokit/corenpm: octokitpip: PyGithubruby: octokitgo: github.com/google/go-githubphp: knplabs/github-apijava: org.kohsuke:github-apicsharp: Octokitrust: octocrab

Or let Breakwatch do it: connect a repo and see which files call GitHub, then get the next change as an alert pointing at those files. Check a repo free

Get GitHub API changes by email

Once a week: the breaking changes and upcoming deadlines for GitHub, each linked to the vendor's own page. Free, no account. One-click unsubscribe.

More GitHub API changes

Every GitHub API change →