(principal: Principal)
| 172 | export type AuthOutcome = McpAuthenticated | McpUnauthorized | McpForbidden | McpUnavailable; |
| 173 | |
| 174 | export const authenticated = (principal: Principal): McpAuthenticated => ({ |
| 175 | _tag: "Authenticated", |
| 176 | principal, |
| 177 | }); |
| 178 | |
| 179 | export const unauthorized = (challenge?: string): McpUnauthorized => |
| 180 | challenge === undefined ? { _tag: "Unauthorized" } : { _tag: "Unauthorized", challenge }; |
no outgoing calls
no test coverage detected