decodeBase64URLString()function

decodeBase64URLString(base64: string): string
ParamType
base64string
The Base64URL (or Base64) string to decode. required
Return
string
The decoded UTF-8 string.
Throws
ValueError
If base64 contains an invalid character.

Decode a string from a URL-safe Base64 string (decodes Base64 too).

Examples

decodeBase64URLString("YWJj") // "abc"