Restores + / / in place of - / _, reattaches any missing = padding, then decodes the resulting bytes as
UTF-8. Both padded and unpadded input are accepted.
Parameters
encoded: string
The URL-safe base64-encoded string
Returns string
The decoded UTF-8 string
Throws
InvalidCharacterError If encoded contains characters outside the URL-safe base64 alphabet
Decodes a URL-safe base64 string.
Restores
+//in place of-/_, reattaches any missing=padding, then decodes the resulting bytes as UTF-8. Both padded and unpadded input are accepted.