mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
Update agent/src/index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user