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.