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

Function deleteSession

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

Source from the content-addressed store, hash-verified

1362 });
1363
1364 const deleteSession = (state: OAuthState): Effect.Effect<void, StorageFailure> =>
1365 deps.fuma
1366 .use("oauth_session.delete", (db) =>
1367 looseDb(db).deleteMany("oauth_session", {
1368 where: (b: any) => b("state", "=", String(state)),
1369 }),
1370 )
1371 .pipe(Effect.asVoid);
1372
1373 // -----------------------------------------------------------------------
1374 // 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