( result: McpUnauthorizedResult, organizationId: string | null = null, toolkitSlug: string | null = null, )
| 140 | * an org in the URL (`/org_xxx/mcp`), else the bare document. |
| 141 | */ |
| 142 | export const bearerChallengeFor = ( |
| 143 | result: McpUnauthorizedResult, |
| 144 | organizationId: string | null = null, |
| 145 | toolkitSlug: string | null = null, |
| 146 | ): string => |
| 147 | bearerChallenge( |
| 148 | { reason: result.reason, description: result.description }, |
| 149 | protectedResourceMetadataUrlFor(organizationId, toolkitSlug), |
| 150 | ); |
| 151 | |
| 152 | // --------------------------------------------------------------------------- |
| 153 | // Auth tags + Live layers |
no test coverage detected