Encodes a UTF-8 text string into a URL-safe Base64URL string.
The text string to encode
The Base64URL string representation
const str = toBase64Url('Hello World'); Copy
const str = toBase64Url('Hello World');
Encodes a UTF-8 text string into a URL-safe Base64URL string.