> ## Content Index
> Fetch the complete content index at: https://orbiorbi.com/news/llms.txt
> Use this file to discover other available public pages before exploring further.

# GitHub CLI 预览可自动刷新的限时令牌
- URL: https://orbiorbi.com/news/hot/github-cli-expiring-oauth-token-preview/
- Published: 2026-10-21T16:43:23.000Z
- Updated: 2026-10-21T23:00:17.000Z
- Description: 据 GitHub 公告，CLI 公开预览支持按需启用限时 OAuth 凭据，保存到期访问令牌与轮换刷新令牌，并在需要时自动刷新。该功能从 v2.103.0 起可在登录时选择。
- Author: Orbis News
- Tags: #orbis-hot

据 GitHub 公告，CLI 公开预览支持按需启用限时 OAuth 凭据，保存到期访问令牌与轮换刷新令牌，并在需要时自动刷新。该功能从 v2.103.0 起可在登录时选择。

- GitHub 建议 HTTPS Git 用户将 gh 配置为凭据助手，并使用 Git 2.46 或更新版本。 [\[1\]](#hot-source-1)

## 来源与原文

- \[1\] GitHub · 2026-10-22 · [查看原文](https://github.blog/changelog/2026-10-21-github-cli-opt-in-to-expiring-auto-refreshing-oauth-tokens?ref=orbiorbi.com)  
CLI 新增自愿启用的限时凭据与自动刷新支持。

{"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 新增自愿启用的限时凭据与自动刷新支持。","tier":"T0","at":"2026-10-21T16:43:23.000Z"}\],"signals":\[\],"facts":\["GitHub 建议 HTTPS Git 用户将 gh 配置为凭据助手，并使用 Git 2.46 或更新版本。"\]}}