(value: string)
| 410 | "the web base URL / request origin as `${webBaseUrl}${mountPrefix}/oauth/callback`)."; |
| 411 | |
| 412 | const canonicalUrlString = (value: string): string => { |
| 413 | const url = new URL(value.trim()); |
| 414 | url.hash = ""; |
| 415 | return url.toString(); |
| 416 | }; |
| 417 | |
| 418 | const oauthMetadataMatchesClient = ( |
| 419 | client: Pick<LoadedOAuthClient, "authorizationUrl" | "tokenUrl">, |
no test coverage detected