# GitHub will require expiring user tokens for new apps from January 5

> New GitHub Apps and OAuth apps lose the option of tokens that never expire. Access tokens will last eight hours.

URL: https://claudegpt.si/news/github-expiring-user-tokens-new-apps  
Published: 2026-12-05T18:57:07.361Z  
Author: ClaudeGPT Si Newsroom  
Section: AI Tools  
Topics: GitHub, Developer tools, Security, API keys  
Publisher: ClaudeGPT Si

## Key takeaways

- From January 5, 2027, newly registered GitHub Apps and OAuth apps support only expiring user access tokens.
- User access tokens for new apps expire after eight hours and are renewed with a refresh token.
- Tokens issued before January 5 are not affected.

GitHub will stop letting new apps issue user access tokens that never expire. Starting January 5, 2027, every newly registered GitHub App and OAuth app gets expiring user tokens only, GitHub said in a [changelog post](https://blog.github.com/changelog/2026-12-04-require-expiring-user-tokens-for-new-github-apps-and-oauth-apps-ga-ga/) on December 4. The change covers GitHub.com and GHE.com.

Expiring tokens were already the default for new apps. What goes away is the checkbox that let a developer opt out at registration. With it gone, a user access token from a new app lasts eight hours, and the app uses a refresh token to get the next one without sending the user back through sign-in.

GitHub's reason is simple. A token that never expires is valid until someone revokes it, so one that leaks from a log file, a laptop or a compromised CI job keeps working for as long as nobody notices. Eight hours caps the damage. That matters more now that coding agents and third-party tools hold GitHub tokens on behalf of so many accounts.

Nothing changes for tokens issued before January 5. The post doesn't say whether apps registered before that date will ever be forced to switch, and it mentions no later phase.

If you plan to register an app after the cutoff, check first that your code or your auth library handles the [refresh token flow](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/refreshing-user-access-tokens). For OAuth apps, GitHub points to the [expiring access tokens section](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#expiring-access-tokens) of its authorization docs. An app that stores one token and reuses it forever will start failing eight hours after each user signs in.

## Sources

- [New GitHub Apps and OAuth apps require expiring user tokens](https://blog.github.com/changelog/2026-12-04-require-expiring-user-tokens-for-new-github-apps-and-oauth-apps-ga-ga/), GitHub
- [Refreshing user access tokens](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/refreshing-user-access-tokens), GitHub Docs
