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

Function deleteSession

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

Source from the content-addressed store, hash-verified

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