MCPcopy Create free account
hub / github.com/cloudflare/templates / arrayBufferToString

Function arrayBufferToString

x402-proxy-template/src/jwt.ts:52–55  ·  view source on GitHub ↗

* Convert BufferSource to string

(buffer: BufferSource)

Source from the content-addressed store, hash-verified

50 * Convert BufferSource to string
51 */
52function arrayBufferToString(buffer: BufferSource): string {
53 const decoder = new TextDecoder();
54 return decoder.decode(buffer);
55}
56
57/**
58 * Import the JWT secret as a CryptoKey for HMAC operations

Callers 1

verifyJWTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected