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