• Decode a base64url-encoded byte array.

    This encoding differs from base64 in so far that the characters + and / are replaced with - and _ and the padding (=) is removed, so that the encoded value can be inserted into URIs without escaping.

    Returns

    either the array or an error, if text is not a valid base64url encoding

    Parameters

    • text: string

      to be decoded

    Returns Either<Uint8Array, string>

Generated using TypeDoc