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

Function deleteSession

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

Source from the content-addressed store, hash-verified

1490 });
1491
1492 const deleteSession = (state: OAuthState): Effect.Effect<void, StorageFailure> =>
1493 deps.fuma
1494 .use("oauth_session.delete", (db) =>
1495 looseDb(db).deleteMany("oauth_session", {
1496 where: (b: any) => b("state", "=", String(state)),
1497 }),
1498 )
1499 .pipe(Effect.asVoid);
1500
1501 // -----------------------------------------------------------------------
1502 // 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