mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:27:03 +08:00
docs(usage): correct the Grok access token lifetime in the module doc
The access token lasts about six hours, not seven days, and the Grok CLI renews it from the stored refresh_token on its next run. The module doc now matches the refresh-pending handling from add36d6df.
This commit is contained in:
1 parent
d09bde52a3
commit
ef071c1148
1 file changed
+3
-2
@@ -10,8 +10,9 @@
|
||||
//! - 查询:`GrokWebBillingFetcher.swift` —— POST 空 gRPC-web 帧到
|
||||
//! `GetGrokCreditsConfig`,响应无公开 .proto,用通用 protobuf 扫描按
|
||||
//! 字段路径启发式提取已用百分比与重置时间。
|
||||
//! - token 刷新由 Grok CLI 自己负责(约 7 天过期),本模块只读不刷新,
|
||||
//! 过期时引导用户重新 `grok login`。
|
||||
//! - token 刷新由 Grok CLI 自己负责(访问令牌约 6 小时过期,CLI 下次运行时
|
||||
//! 用 refresh_token 换新),本模块只读不刷新;过期但仍有 refresh_token 时
|
||||
//! 报“待刷新”,刷新令牌也没了才引导用户重新 `grok login`。
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
Reference in new issue
Block a user