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