mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-03-29 16:54:41 +00:00
chore: cherry-pick 文档更新和删除测试文件
- docs: 添加 Kiro OAuth web 认证端点说明 (ace7c0c) - chore: 删除包含敏感数据的测试文件 (8f06f6a) - 保留本地修改: refresh_manager, token_repository 等
This commit is contained in:
@@ -3617,6 +3617,13 @@ func (e *KiroExecutor) Refresh(ctx context.Context, auth *cliproxyauth.Auth) (*c
|
||||
if tokenData.ClientSecret != "" {
|
||||
updated.Metadata["client_secret"] = tokenData.ClientSecret
|
||||
}
|
||||
// Preserve region and start_url for IDC token refresh
|
||||
if tokenData.Region != "" {
|
||||
updated.Metadata["region"] = tokenData.Region
|
||||
}
|
||||
if tokenData.StartURL != "" {
|
||||
updated.Metadata["start_url"] = tokenData.StartURL
|
||||
}
|
||||
|
||||
if updated.Attributes == nil {
|
||||
updated.Attributes = make(map[string]string)
|
||||
|
||||
Reference in New Issue
Block a user