MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / auth-middleware.ts

File auth-middleware.ts

apps/cloud/src/org/auth-middleware.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { env } from "cloudflare:workers";
2import { ADMIN_MFA_COOKIE, readAdminMfaProof } from "../auth/admin-mfa-proof";
3import { Clock, Context, Effect, Layer } from "effect";
4import { HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http";

Callers

nothing calls this directly

Calls 5

readAdminMfaProofFunction · 0.90
sessionFromSealedFunction · 0.90
noOrganizationFunction · 0.85
unauthorizedFunction · 0.70

Tested by

no test coverage detected