From 4d1ca633bafeb5fbc431f8c101e6a52b0e03f6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=A8=E8=8B=92?= <16112591+chen-ran@users.noreply.github.com> Date: Tue, 24 Feb 2026 04:49:01 +0800 Subject: [PATCH] Update agent/src/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- agent/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agent/src/index.ts b/agent/src/index.ts index 9b48767b..d89fc2be 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -27,9 +27,8 @@ function parseJwtExp(token: string): number | null { } } -let refreshPromise: Promise | null = null - export const createAuthFetcher = (auth: AgentAuthContext): AuthFetcher => { + let refreshPromise: Promise | null = null return async (url: string, options?: RequestInit) => { if (auth.bearer) { const exp = parseJwtExp(auth.bearer)