MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / base64UrlEncode

Function base64UrlEncode

telemetry-dashboard/src/auth.ts:33–37  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

31}
32
33function base64UrlEncode(bytes: Uint8Array): string {
34 let binary = '';
35 for (const byte of bytes) binary += String.fromCharCode(byte);
36 return btoa(binary).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
37}
38
39function base64UrlDecode(text: string): Uint8Array | null {
40 try {

Callers 2

passwordFingerprintFunction · 0.85
issueSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected