(key: string)
| 8 | import { base64UrlDecode } from "./utils"; |
| 9 | |
| 10 | /** |
| 11 | * Reduces an audience value to a canonical `host[:port]` string for comparison. |
| 12 | * |
| 13 | * Accepts the two spellings that are in use: |
| 14 | * - a full origin, e.g. "https://registry.example", which is what |
| 15 | * `createToken()` documents and what its `registryUrl` argument implies |
| 16 | * - a bare host, e.g. "registry.example" or "registry.example:8787" |
| 17 | * |
| 18 | * The scheme is deliberately ignored. Two registries are distinguished by host, |
no outgoing calls
no test coverage detected