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

Function consumeOAuthResult

apps/local/src/oauth-result-store.ts:53–60  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

51 * (the OAuth flow is still in progress, or the user abandoned it).
52 */
53export const consumeOAuthResult = (sessionId: string): AnyResult | null => {
54 const now = Date.now();
55 cleanupExpired(now);
56 const entry = store.get(sessionId);
57 if (!entry) return null;
58 store.delete(sessionId);
59 return entry.result;
60};
61
62/** Test-only — clears the entire store between tests. */
63export const __resetOAuthResultStoreForTests = (): void => {

Callers 2

configureServerFunction · 0.90
fetchFunction · 0.90

Calls 3

cleanupExpiredFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected