(fullUrl: string)
| 253 | } |
| 254 | |
| 255 | function authorizeHost(fullUrl: string): string { |
| 256 | try { |
| 257 | const u = new URL(fullUrl); |
| 258 | return `${u.origin}${u.pathname}`; |
| 259 | } catch { |
| 260 | return fullUrl.split("?")[0] ?? fullUrl; |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | function buildAuthorizeUrl(args: { |
| 265 | clientId: string; |
no outgoing calls
no test coverage detected