Created
August 18, 2016 17:51
-
-
Save daronwolff/69c34fcea9e9e33b62e3de14fe93b554 to your computer and use it in GitHub Desktop.
This function can be used to decode a string with token_id from openId response
This file contains hidden or 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
// | |
// This function can be used to decode a string with token_id from openId response | |
// | |
function decode_tokenid(token){ | |
var elements = Array(); | |
elements[0] = atob(token.split(".")[0]); | |
elements[1] = atob(token.split(".")[1]); | |
return elements; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment