refactor: use const

This commit is contained in:
jamesgeorge007
2020-01-11 10:48:12 +05:30
parent 46d5ffc05b
commit caf33ba87e

View File

@@ -81,7 +81,7 @@ const base64urlencode = (
.replace(/=+$/, ""); .replace(/=+$/, "");
// Return the base64-urlencoded sha256 hash for the PKCE challenge // Return the base64-urlencoded sha256 hash for the PKCE challenge
const pkceChallengeFromVerifier = async v => { const pkceChallengeFromVerifier = async v => {
let hashed = await sha256(v); const hashed = await sha256(v);
return base64urlencode(hashed); return base64urlencode(hashed);
}; };