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

Function deleteSession

packages/core/sdk/src/oauth-service.ts:1406–1413  ·  view source on GitHub ↗
(state: OAuthState)

Source from the content-addressed store, hash-verified

1404 });
1405
1406 const deleteSession = (state: OAuthState): Effect.Effect<void, StorageFailure> =>
1407 deps.fuma
1408 .use("oauth_session.delete", (db) =>
1409 looseDb(db).deleteMany("oauth_session", {
1410 where: (b: any) => b("state", "=", String(state)),
1411 }),
1412 )
1413 .pipe(Effect.asVoid);
1414
1415 // -----------------------------------------------------------------------
1416 // cancel — drop an in-flight session.

Callers 2

completeFunction · 0.85
cancelFunction · 0.85

Calls 1

looseDbFunction · 0.85

Tested by

no test coverage detected