MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isTokenValid

Function isTokenValid

apps/cli/src/lib/auth/token.ts:49–51  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

47}
48
49export function isTokenValid(token: string): boolean {
50 return !isTokenExpired(token, 0)
51}
52
53export function getTokenExpirationDate(token: string): Date | null {
54 const decoded = decodeToken(token)

Callers 1

statusFunction · 0.85

Calls 1

isTokenExpiredFunction · 0.70

Tested by

no test coverage detected