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

Function noOrganization

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

Source from the content-addressed store, hash-verified

24 );
25
26const noOrganization = () =>
27 HttpServerResponse.jsonUnsafe(
28 {
29 error: "No organization in session",
30 code: "no_organization",
31 },
32 { status: 403 },
33 );
34
35/**
36 * The caller's role in the session org, as `authorizeOrganizationSelector`

Callers 1

auth-middleware.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected