(input: Parameters<typeof globalThis.fetch>[0])
| 79 | |
| 80 | /** The URL a `fetch` double was handed, however the caller spelled it. */ |
| 81 | const fetchTarget = (input: Parameters<typeof globalThis.fetch>[0]): string => |
| 82 | typeof input === "string" ? input : input instanceof URL ? input.href : input.url; |
| 83 | |
| 84 | /** |
| 85 | * A `fetch` that holds token-endpoint requests open AFTER the authorization |