(value?: string)
| 620 | * Validate that the client_id is a valid URL with https scheme |
| 621 | */ |
| 622 | export function isHttpsUrl(value?: string): boolean { |
| 623 | if (!value) return false; |
| 624 | try { |
| 625 | const url = new URL(value); |
| 626 | return url.protocol === 'https:' && url.pathname !== '/'; |
| 627 | } catch { |
| 628 | return false; |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | export async function selectResourceURL( |
| 633 | serverUrl: string | URL, |
no outgoing calls
no test coverage detected
searching dependent graphs…