GitHub CLI Adds Expiring OAuth Tokens: Check Git, Scripts, and Extensions First
GitHub announced an opt-in public preview of expiring, automatically refreshing OAuth credentials for GitHub CLI on October 21, 2026, beginning with version 2.103.0. Users can enable the behavior with gh auth login --expiring or a global configuration setting. Git over HTTPS should use gh auth setup-git, and Git 2.46 or newer is recommended to avoid caching credentials beyond their lifetime. This article focuses on AI coding tools, scripts, and extensions that capture gh auth token output once and reuse it. It provides an inventory, migration, and verification sequence so users can gain a shorter exposure window without unexpectedly breaking long-running automation.

