New GitHub Apps and OAuth apps will support only expiring user tokens from January 5, 2027
GitHub says that starting January 5, 2027, GitHub Apps and OAuth apps registered after that date will support only expiring user access tokens. Tokens issued before then are not affected. The change applies to GitHub.com and GHE.com.
- What changes. Expiring user tokens were already on by default for new apps, but developers could opt out at registration and issue tokens that never expire. From January 5 the opt-out setting is no longer offered. GitHub's reason: a non-expiring token stays valid until revoked, so a leaked one can be used indefinitely.
- How the tokens work. User access tokens for new apps expire after eight hours. The app uses the refresh token it receives to get a new access token without asking the user to sign in again.
- What to do. GitHub advises anyone building a new app to make sure the app or its authentication SDK supports the refresh token flow before registering it.
Sources
Get news like this as a push.
AI Tracker alerts you when something changes for the tools you use.