• Encode a byte array in base64url.

    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.

    See RFC 4648 for more details: https://www.rfc-editor.org/rfc/rfc4648#section-5

    Returns

    bytes encoded as base64url text

    Parameters

    • bytes: Uint8Array

      to be encoded

    Returns string

Generated using TypeDoc