Security

New GitHub Apps and OAuth Apps Must Use Expiring User Tokens Starting Jan. 5

Leave a comment

GitHub announced that starting Jan. 5, 2027, newly registered GitHub Apps and OAuth apps will only support expiring user access tokens. The opt-out checkbox goes away during registration, and user tokens for new apps expire after eight hours. Your app uses its refresh token to get a fresh one without making the user sign in again.

Tokens issued before then aren’t affected, and existing apps aren’t forced to change. The change covers GitHub.com and GHE.com. GitHub’s reasoning is simple: a token that never expires stays valid until somebody revokes it, so a leaked one works forever.

My take

Good. Short-lived credentials are the same thing I’ve been pushing for my own bots and agents. If you’re building a new app, make sure your auth library handles the refresh flow before you register. And if you’re still signing the GitHub CLI in with a forever token, here’s how I switched to an expiring, fine-grained one.

God Bless, and May the Source Be with You!

References & Further Reading

Subscribe (RSS) Follow News via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.