3 ms·
btoa is base64 not base64url. And even if it was base64url, it takes a "binary string", so using it on, say, a Uint8Array is non-trivial.
by thayne 7y ago
btoa is base64 not base64url. And even if it was base64url, it takes a "binary string", so using it on, say, a Uint8Array is non-trivial.
- tomashubelbauer 7y agoThank you, I didn't realize the URL safe variant of Base64 had a name and that it was this!