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

Function noOrganization

apps/cloud/src/org/auth-middleware.ts:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 );
20
21const noOrganization = () =>
22 HttpServerResponse.jsonUnsafe(
23 {
24 error: "No organization in session",
25 code: "no_organization",
26 },
27 { status: 403 },
28 );
29
30const OrgAuthMiddleware = HttpRouter.middleware<{ provides: AuthContext }>()(
31 Effect.gen(function* () {

Callers 1

auth-middleware.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected