MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / cleanupExpired

Function cleanupExpired

apps/local/src/oauth-result-store.ts:31–35  ·  view source on GitHub ↗
(now: number)

Source from the content-addressed store, hash-verified

29const store = new Map<string, StoredResult>();
30
31const cleanupExpired = (now: number) => {
32 for (const [sessionId, entry] of store) {
33 if (entry.expiresAt < now) store.delete(sessionId);
34 }
35};
36
37/**
38 * Publish a completed OAuth result. Called from `runOAuthCallback` after

Callers 2

publishOAuthResultFunction · 0.85
consumeOAuthResultFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected