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

Function unauthorized

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

Source from the content-addressed store, hash-verified

10import { DbService } from "../db/db";
11
12const unauthorized = () =>
13 HttpServerResponse.jsonUnsafe(
14 {
15 error: "Invalid or expired session",
16 code: "invalid_session",
17 },
18 { status: 401 },
19 );
20
21const noOrganization = () =>
22 HttpServerResponse.jsonUnsafe(

Callers 1

auth-middleware.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected