GitHub CLI previews expiring, auto-refreshing OAuth tokens
Orbis News1 min read
According to GitHub, CLI users can opt in to expiring OAuth credentials in public preview starting with v2.103.0. The CLI stores a rotating refresh token and automatically renews the access token when needed.
- GitHub recommends configuring gh as the credential helper for HTTPS Git and using Git 2.46 or newer. [1]
Sources and originals
- [1] GitHub · · Read original
CLI users can opt in to expiring credentials with automatic renewal.
{"version":2,"hot":{"event_id":"github-cli-expiring-oauth-token-preview","group":"platform","count":1,"heat":20,"verified":"confirmed","firstSeen":"2026-10-21T16:43:23.000Z","lastSeen":"2026-10-21T23:00:06.171Z","sources":[{"n":"GitHub","publisher":"GitHub","u":"https://github.blog/changelog/2026-10-21-github-cli-opt-in-to-expiring-auto-refreshing-oauth-tokens","say":"CLI users can opt in to expiring credentials with automatic renewal.","tier":"T0","at":"2026-10-21T16:43:23.000Z"}],"signals":[],"facts":["GitHub recommends configuring gh as the credential helper for HTTPS Git and using Git 2.46 or newer."]}}