fix: typo

This commit is contained in:
jamesgeorge007
2020-01-11 10:47:57 +05:30
parent 086b2de505
commit 46d5ffc05b

View File

@@ -70,7 +70,7 @@ const sha256 = plain => {
}; };
// Base64-urlencodes the input string // Base64-urlencodes the input string
const base64urlencode = ( const base64urlencode = (
str // Convert the ArrayBuffer to string using Uint8 array to conver to what btoa accepts. str // Convert 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. // btoa accepts chars only within ascii 0-255 and base64 encodes them.
// Then convert the base64 encoded to base64url encoded // Then convert the base64 encoded to base64url encoded