MCPcopy
hub / github.com/21st-dev/1code / isExpired

Method isExpired

src/main/lib/credential-manager.ts:260–263  ·  view source on GitHub ↗

* Check if a credential is expired

(credential: StoredCredential)

Source from the content-addressed store, hash-verified

258 * Check if a credential is expired
259 */
260 isExpired(credential: StoredCredential): boolean {
261 if (!credential.expiresAt) return false;
262 return Date.now() > credential.expiresAt;
263 }
264
265 /**
266 * Check if a credential needs refresh (within 5 min of expiry)

Callers 1

getTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected