AIFeed

New GitHub Apps and OAuth apps require expiring user tokens

Summary

Starting January 5, 2027, newly registered GitHub Apps and OAuth apps support only expiring user access tokens. Tokens issued before then aren't affected. Expiring user tokens were already turned on by default for new apps, but you could opt out during registration and issue user tokens that never expired. A non-expiring token stays valid until it's revoked, so a leaked token can be used indefinitely. Requiring expiration limits that exposure for every new app. When you register a new GitHub App or OAuth app starting January 5, 2027, the setting to opt out of user token expiration will no longer be available. User access tokens for new apps expire after eight hours. Your app uses the refresh token it receives to get a new access token without asking the user to sign in again. Tokens that were already issued aren't affected by this change. If you're building a new app, make sure your app or authentication SDK supports the refresh token flow before you register it. This change applies to…

Original text(via GitHub Changelog)

Starting January 5, 2027, newly registered GitHub Apps and OAuth apps support only expiring user access tokens. Tokens issued before then aren't affected.

Expiring user tokens were already turned on by default for new apps, but you could opt out during registration and issue user tokens that never expired. A non-expiring token stays valid until it's revoked, so a leaked token can be used indefinitely. Requiring expiration limits that exposure for every new app.

  • When you register a new GitHub App or OAuth app starting January 5, 2027, the setting to opt out of user token expiration will no longer be available.
  • User access tokens for new apps expire after eight hours. Your app uses the refresh token it receives to get a new access token without asking the user to sign in again.
  • Tokens that were already issued aren't affected by this change.

If you're building a new app, make sure your app or authentication SDK supports the refresh token flow before you register it. This change applies to GitHub.com and GHE.com starting January 5, 2027.

For implementation details, see Refreshing user access tokens and the "Expiring access tokens" section of Authorizing OAuth apps.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗