Update agent/src/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
晨苒
2026-02-24 05:04:36 +08:00
committed by Ran
parent 579bf45fc2
commit 3e3379a869
+1
View File
@@ -20,6 +20,7 @@ function parseJwtExp(token: string): number | null {
const payload = JSON.parse(jsonPayload)
return payload.exp ? payload.exp * 1000 : null
} catch (e) {
console.error('Failed to parse JWT expiration from token', e)
return null
}
}