decodeBase64IgnorePadding()

Decodes a base64 encoded string into a byte array based on RFC 4648 ยง5. The string must be canonical but can be partially or fully missing its padding. Throws an Error if the encoding is invalid.

Definition

function decodeBase64IgnorePadding(encoded: string): Uint8Array;

Parameters

  • encoded