MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / requireAdminAuth

Function requireAdminAuth

services/db-proxy/src/utils/auth.ts:67–72  ·  view source on GitHub ↗
(c: Context<{ Bindings: Env }>)

Source from the content-addressed store, hash-verified

65 if (!verifyAdminToken(c)) {
66 return errorResponse(c, 'UNAUTHORIZED', 'Invalid or missing admin token', 401) as Response;
67 }
68 return null;
69}

Callers 2

auth.test.tsFile · 0.90
admin.tsFile · 0.90

Calls 2

verifyAdminTokenFunction · 0.85
errorResponseFunction · 0.70

Tested by

no test coverage detected