decodeBase64()

Decodes a base64 encoded string into a byte array based on RFC 4648 ยง4. The string must be canonical and include padding. Throws an Error if the encoding is invalid.

Definition

function decodeBase64(encoded: string): Uint8Array;

Parameters

  • encoded