crypto.b64url_decode

crypto

b64url_decode(str) -> decoded, err

Decode a base64url-encoded string

Accepts base64url strings with or without = padding, as well as + and /. Returns nil and a reason if str is not a string or cannot be decoded as base64.