Merge pull request #195 from leonaii/main

fix(kiro): 修复批量导入请求缺少认证头的问题,出现401错误,已经回归验证。
This commit is contained in:
何夕2077 2026-01-09 13:27:19 +08:00 committed by GitHub
commit f4c2a903aa

View file

@ -673,10 +673,10 @@ function showKiroBatchImportModal() {
const details = [];
try {
// 使用 fetch + SSE 获取流式响应
// 使用 fetch + SSE 获取流式响应(需要带认证头)
const response = await fetch('/api/kiro/batch-import-tokens', {
method: 'POST',
headers: {
headers: window.apiClient ? window.apiClient.getAuthHeaders() : {
'Content-Type': 'application/json'
},
body: JSON.stringify({ refreshTokens: tokens })