decodeBase64String()function
decodeBase64String(base64: string): string
| Param | Type | |
|---|---|---|
base64 | string | The Base64 (or Base64URL) string to decode. required |
| Return | |
|---|---|
string | The decoded UTF-8 string. |
| Throws | |
|---|---|
ValueError | If base64 contains an invalid character. |
Decode a Base64 string to a string (decodes Base64URL too).
Examples
decodeBase64String("YWJj") // "abc"