decodeBase64url()

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

Definition

function decodeBase64url(encoded: string): Uint8Array;

Parameters

  • encoded