mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
Update agent/src/index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-2
@@ -27,9 +27,8 @@ function parseJwtExp(token: string): number | null {
|
||||
}
|
||||
}
|
||||
|
||||
let refreshPromise: Promise<string> | null = null
|
||||
|
||||
export const createAuthFetcher = (auth: AgentAuthContext): AuthFetcher => {
|
||||
let refreshPromise: Promise<string> | null = null
|
||||
return async (url: string, options?: RequestInit) => {
|
||||
if (auth.bearer) {
|
||||
const exp = parseJwtExp(auth.bearer)
|
||||
|
||||
Reference in New Issue
Block a user