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

Function publishOAuthResult

apps/local/src/oauth-result-store.ts:41–47  ·  view source on GitHub ↗
(result: AnyResult)

Source from the content-addressed store, hash-verified

39 * the per-plugin `complete` Effect resolves (success or failure).
40 */
41export const publishOAuthResult = (result: AnyResult): void => {
42 const sessionId = result.sessionId;
43 if (!sessionId) return;
44 const now = Date.now();
45 cleanupExpired(now);
46 store.set(sessionId, { result, expiresAt: now + RESULT_TTL_MS });
47};
48
49/**
50 * Read and remove a result. Returns null if the sessionId has no entry

Callers 1

startServerFunction · 0.90

Calls 2

cleanupExpiredFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected