Convert a binary buffer into a Base64URL string without padding.
The function prefers the native btoa implementation when available and falls back to Node.js Buffer semantics when running outside the browser.
btoa
Buffer
The bytes to encode.
A Base64URL string (no padding characters).
Convert a binary buffer into a Base64URL string without padding.
The function prefers the native
btoaimplementation when available and falls back to Node.jsBuffersemantics when running outside the browser.