Skip to content

GitHub will require expiring tokens for new OAuth and GitHub Apps

From 5 January 2027, new GitHub Apps and OAuth apps lose the option to issue tokens that never expire, so they need the refresh token flow working before they register.

Source: GitHub

GitHub is closing a long-standing opt-out. From 5 January 2027, every newly registered GitHub App and OAuth app must issue expiring user access tokens. The checkbox that let a new app skip expiry and hand out tokens valid until revoked, rather than until they time out, is going away.

New tokens expire after eight hours. Apps are expected to use the refresh token they already receive alongside the access token to get a new one without sending the user back through sign-in. The change applies to both GitHub.com and GHE.com, and only affects apps registered after the cutover: existing tokens and existing app registrations keep working exactly as they do now.

Why it matters: if you’re about to register a new GitHub App or OAuth app, or you maintain one that currently relies on a non-expiring token, get the refresh token flow working before the deadline, not after. A token that never expires is a standing liability if it leaks; one that dies in eight hours sharply limits how long a leaked credential stays useful to whoever finds it.

Share

Related reading

More from The Wire

All briefs