Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.ts
File · 0.90
admin.ts
File · 0.90
Calls
2
verifyAdminToken
Function · 0.85
errorResponse
Function · 0.70
Tested by
no test coverage detected