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

Function unauthorized

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

Source from the content-addressed store, hash-verified

17import { DbService } from "../db/db";
18
19const unauthorized = () =>
20 HttpServerResponse.jsonUnsafe(
21 {
22 error: "Invalid or expired session",
23 code: "invalid_session",
24 },
25 { status: 401 },
26 );
27
28const noOrganization = () =>
29 HttpServerResponse.jsonUnsafe(

Callers 1

auth-middleware.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected