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

Function generateCodeChallenge

cli/src/utils/chatgpt-oauth.ts:76–78  ·  view source on GitHub ↗
(verifier: string)

Source from the content-addressed store, hash-verified

74}
75
76function generateCodeChallenge(verifier: string): string {
77 return toBase64Url(crypto.createHash('sha256').update(verifier).digest())
78}
79
80let pendingCodeVerifier: string | null = null
81let pendingState: string | null = null

Callers 1

startChatGptOAuthFlowFunction · 0.85

Calls 1

toBase64UrlFunction · 0.70

Tested by

no test coverage detected