MCPcopy Create free account
hub / github.com/codeaashu/claude-code / generateCodeVerifier

Function generateCodeVerifier

src/services/oauth/crypto.ts:11–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11export function generateCodeVerifier(): string {
12 return base64URLEncode(randomBytes(32))
13}
14
15export function generateCodeChallenge(verifier: string): string {
16 const hash = createHash('sha256')

Callers

nothing calls this directly

Calls 1

base64URLEncodeFunction · 0.85

Tested by

no test coverage detected