From 9e5a162d74adf42a01150d98c18f0223f1c48621 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 11 Jan 2020 13:25:01 +0530 Subject: [PATCH] fix: minor tweak --- assets/js/oauth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/oauth.js b/assets/js/oauth.js index e2a64fe29..9b50a0952 100644 --- a/assets/js/oauth.js +++ b/assets/js/oauth.js @@ -98,14 +98,14 @@ const sha256 = plain => { }; /** - * Base64-urlencodes the input string + * Encodes the input string into Base64 format * * @param {String} str - The string to be converted * @returns {Promise} */ const base64urlencode = ( - str // Convert the ArrayBuffer to string using Uint8 array to convert to what btoa accepts. + str // Converts the ArrayBuffer to string using Uint8 array to convert to what btoa accepts. ) => // btoa accepts chars only within ascii 0-255 and base64 encodes them. // Then convert the base64 encoded to base64url encoded