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

Function deleteSession

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

Source from the content-addressed store, hash-verified

2005 });
2006
2007 const deleteSession = (state: OAuthState): Effect.Effect<void, StorageFailure> =>
2008 deps.fuma
2009 .use("oauth_session.delete", (db) =>
2010 looseDb(db).deleteMany("oauth_session", {
2011 where: (b: any) => b("state", "=", String(state)),
2012 }),
2013 )
2014 .pipe(Effect.asVoid);
2015
2016 // -----------------------------------------------------------------------
2017 // 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