* Converts a bytes array into base64url encoded string. * base64url is defined in RFC 4648. It is sometimes referred to as "web safe". * @param {!Uint8Array} bytes * @return {string}
(bytes)
| 3226 | * @return {string} |
| 3227 | */ |
| 3228 | function base64UrlEncodeFromBytes(bytes) { |
| 3229 | const str = bytesToString(bytes); |
| 3230 | return btoa(str).replace(/[+/=]/g, (ch) => base64UrlEncodeSubs[ch]); |
| 3231 | } |
| 3232 | |
| 3233 | /** |
| 3234 | * Copyright 2018 The Subscribe with Google Authors. All Rights Reserved. |
no test coverage detected