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

Function expire

packages/core/sdk/src/oauth-session-cleanup.test.ts:326–332  ·  view source on GitHub ↗
(db: FumaDb, state: string)

Source from the content-addressed store, hash-verified

324 });
325
326 const expire = (db: FumaDb, state: string) =>
327 Effect.promise(() =>
328 db.updateMany("oauth_session", {
329 where: (builder) => builder("state", "=", state),
330 set: { expires_at: Date.now() - 60_000 },
331 }),
332 );
333
334 const bStale = yield* startUserFlow(b, "b-stale");
335 yield* expire(b.config.db, String(bStale.state));

Callers 1

Calls 1

builderFunction · 0.85

Tested by

no test coverage detected