Skip to content

An editorial team and a community building with AI

← All articles

News · GitHub (Microsoft) · 2 min read

Event date: · Published:

GitHub requires expiring user tokens for new GitHub Apps and OAuth Apps

Starting January 5, 2027, every newly registered GitHub App and OAuth App must use access tokens that expire after 8 hours, removing the non-expiring token option to limit damage from leaked credentials.

GitHub (Microsoft) announced on December 4, 2026, in a GitHub Changelog post on expiring user tokens, that every newly registered GitHub App and OAuth App will be required to use expiring user access tokens starting January 5, 2027, removing the non-expiring token opt-out so a leaked token can no longer be used indefinitely.

What's changing

  • The requirement takes effect on January 5, 2027, for every newly registered GitHub App and OAuth App.
  • The non-expiring user access token opt-out is removed from app registration for new apps.
  • New apps' user access tokens expire after 8 hours.
  • Apps must implement the OAuth refresh-token flow to keep access without re-prompting users.
  • The change applies on both GitHub.com and GitHub Enterprise Server (GHE.com).
  • Tokens issued before the effective date are unaffected.

What it means for developers

Anyone building a new GitHub App or OAuth integration after January 5, 2027, will need to design the OAuth refresh-token flow into the project from the start, rather than treating it as optional. GitHub frames the change as a security fix: a leaked non-expiring token could otherwise be used indefinitely, so forcing an 8-hour expiry limits how long a stolen credential stays useful. The change is categorized under GitHub's Application Security and Client Apps changelog category.

Who's affected

The requirement applies only to apps registered on or after January 5, 2027; existing GitHub Apps and OAuth Apps that already issued non-expiring tokens keep working as before. Teams planning a new integration, whether on GitHub.com or GitHub Enterprise Server (GHE.com), should build the refresh-token flow into their design from the start.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

GitHub requires expiring user tokens for new GitHub Apps and OAuth Apps | vibecoding.inc