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

Function authenticated

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

Source from the content-addressed store, hash-verified

172export type AuthOutcome = McpAuthenticated | McpUnauthorized | McpForbidden | McpUnavailable;
173
174export const authenticated = (principal: Principal): McpAuthenticated => ({
175 _tag: "Authenticated",
176 principal,
177});
178
179export const unauthorized = (challenge?: string): McpUnauthorized =>
180 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