Created
July 16, 2018 06:46
-
-
Save ashkanRmk/9226540021544dc9f751aa8f82ed9e12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sha256(buffer) { | |
return crypto.createHash('sha256').update(buffer).digest(); | |
} | |
var challenge = base64URLEncode(sha256(verifier)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment