MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / toBase64Url

Function toBase64Url

packages/cli/src/lib/oauth.ts:11–13  ·  view source on GitHub ↗
(input: Uint8Array | string)

Source from the content-addressed store, hash-verified

9};
10
11function toBase64Url(input: Uint8Array | string) {
12 return Buffer.from(input).toString("base64url");
13}
14
15async function createPkceChallenge(verifier: string) {
16 const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier));

Callers 3

createPkceChallengeFunction · 0.85
encodeStateFunction · 0.85
performLoginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected