MCPcopy Create free account
hub / github.com/cloudflare/serverless-registry / importKeyFromBase64

Function importKeyFromBase64

src/token.ts:10–15  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

8import { 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,

Callers 2

newRegistryTokensFunction · 0.85
createTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected