MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / generateCodeVerifier

Function generateCodeVerifier

cli/src/utils/chatgpt-oauth.ts:72–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72function generateCodeVerifier(): string {
73 return toBase64Url(crypto.randomBytes(32))
74}
75
76function generateCodeChallenge(verifier: string): string {
77 return toBase64Url(crypto.createHash('sha256').update(verifier).digest())

Callers 1

startChatGptOAuthFlowFunction · 0.85

Calls 1

toBase64UrlFunction · 0.70

Tested by

no test coverage detected