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

Function unauthorized

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

Source from the content-addressed store, hash-verified

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

Callers 1

auth-middleware.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected