Base64Url

util~ Base64Url

Utility class for encoding and decoding Base64Url.

Constructor

new Base64Url()

Source:

Methods

(static) decode(base64urlString) → {Buffer}

Convert a base64url encoded string to a Buffer.

Parameters:
Name Type Description
base64urlString String

base64url-encoded string

Source:
Returns:

Decoded data.

Type
Buffer

(static) encode(buffer) → {String}

Encode a buffer as base64url.

Parameters:
Name Type Description
buffer Buffer

Data to encode.

Source:
Returns:

base64url-encoded data.

Type
String