mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 09:25:59 +03:00
[PR #334] [CLOSED] fix(kiro): 修复 EU 区域账户的 API 访问问题 #337
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#337
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/334
Author: @yxc0915
Created: 2/23/2026
Status: ❌ Closed
Base:
main← Head:fix-kiro-eu-region📝 Commits (3)
70e4df3修复eu地区账户的api访问问题b9b4868fix(kiro): correct OIDC region inference and token refresh fallback860cb0bfix(kiro): enforce official endpoints and ignore custom KIRO URLs📊 Changes
2 files changed (+119 additions, -20 deletions)
View changed files
📝
src/auth/kiro-oauth.js(+41 -8)📝
src/providers/claude/claude-kiro.js(+78 -12)📄 Description
问题描述
EU 区域(如 eu-central-1)的 Kiro 账户在进行 token 刷新和 API 调用时会失败,因为:
修复内容
1. 新增 clientId 区域解析
2. 改进区域推断逻辑
3. Q Service 端点区域路由
4. 强制使用官方端点
5. Token 刷新健壮性
影响范围
测试
已在 两个不同的EU 区域账户上验证修复有效。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.