Skip to content
Brief Security & Trust ·

GitHub to require expiring user tokens for all new apps from January 2027

From January 5, 2027, new GitHub Apps and OAuth apps can no longer issue user tokens that never expire.

In brief
  • From January 5, 2027, new GitHub Apps and OAuth apps get only expiring user tokens. The opt-out is removed.
  • Tokens issued earlier are not affected. GitHub's post does not say whether existing apps can still issue non-expiring tokens.

GitHub said in a changelog post dated December 4, 2026 that apps registered from January 5, 2027 will get only expiring user access tokens. This covers both GitHub Apps and OAuth apps, on GitHub.com and GHE.com. Until now, developers could opt out at registration and receive tokens that never expire.

For new apps, a user token will last eight hours. Along with it, the app gets a refresh token. When the access token runs out, the app sends the refresh token to GitHub and receives a new one, so the user does not have to sign in again. GitHub says tokens issued before January 5 are not affected. Its post does not say whether existing apps can still issue non-expiring tokens. It also does not say how many apps use them today.

GitHub says a token with no expiry stays valid until someone revokes it, so a leaked one can be used indefinitely. Expiry limits that exposure: a leaked access token now stops working after eight hours. Our reading is that the long-lived secret moves rather than disappears. The refresh token now carries that risk, because anyone who steals it can keep getting new access tokens. Teams building integrations should check where refresh tokens are stored and what happens when a refresh fails. Buyers can ask vendors the same questions.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: GitHub.