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

Function authenticated

packages/hosts/mcp/src/seams.ts:139–142  ·  view source on GitHub ↗
(principal: Principal)

Source from the content-addressed store, hash-verified

137export type AuthOutcome = McpAuthenticated | McpUnauthorized | McpForbidden | McpUnavailable;
138
139export const authenticated = (principal: Principal): McpAuthenticated => ({
140 _tag: "Authenticated",
141 principal,
142});
143
144export const unauthorized = (challenge?: string): McpUnauthorized =>
145 challenge === undefined ? { _tag: "Unauthorized" } : { _tag: "Unauthorized", challenge };

Callers 5

envelope.test.tsFile · 0.85
finishAuthorizedFunction · 0.85
cloudflareAccessMcpAuthFunction · 0.85
authenticateFunction · 0.85
test-app.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected