GitHub mandates 8-hour expiring tokens for new apps
Listen to Briefing
0:00/1:34

What happened.Microsoft-owned GitHub announced that starting January 5, 2027, newly registered GitHub Apps and OAuth apps must issue expiring user tokens.
Why it matters.Leaked non-expiring OAuth credentials leave production repositories exposed indefinitely until an engineer revokes them. Teams building new `GitHub.com` or `GHE.com` integrations should verify refresh token support in their authentication libraries before January 5, 2027.
The technical specifications:
- Expiration window: User access tokens for newly registered apps expire after 8 hours, eliminating the non-expiring token opt-out previously offered during app setup.
- Refresh flow: Registered apps must call refresh tokens to obtain new user access credentials without prompting developers to sign in again.
- Platform coverage: The mandatory expiration rule takes effect across both `GitHub.com` and `GHE.com` starting January 5, 2027.
- Legacy grandfathering: Non-expiring user access tokens issued before January 5, 2027 remain valid unless manually revoked.