Skip to content

Instantly share code, notes, and snippets.

@daronwolff
Created August 18, 2016 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daronwolff/69c34fcea9e9e33b62e3de14fe93b554 to your computer and use it in GitHub Desktop.
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 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