MCPcopy Index your code
hub / github.com/anomalyco/opencode / base64UrlEncode

Function base64UrlEncode

packages/opencode/src/plugin/openai/codex.ts:32–36  ·  view source on GitHub ↗
(buffer: ArrayBuffer)

Source from the content-addressed store, hash-verified

30}
31
32function base64UrlEncode(buffer: ArrayBuffer): string {
33 const bytes = new Uint8Array(buffer)
34 const binary = String.fromCharCode(...bytes)
35 return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "")
36}
37
38export interface IdTokenClaims {
39 chatgpt_account_id?: string

Callers 2

generatePKCEFunction · 0.70
CodexAuthPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected