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

Function deleteSession

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

Source from the content-addressed store, hash-verified

1484 });
1485
1486 const deleteSession = (state: OAuthState): Effect.Effect<void, StorageFailure> =>
1487 deps.fuma
1488 .use("oauth_session.delete", (db) =>
1489 looseDb(db).deleteMany("oauth_session", {
1490 where: (b: any) => b("state", "=", String(state)),
1491 }),
1492 )
1493 .pipe(Effect.asVoid);
1494
1495 // -----------------------------------------------------------------------
1496 // 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