Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created January 28, 2012 17:34
Show Gist options
  • Save melvincarvalho/1695188 to your computer and use it in GitHub Desktop.
Save melvincarvalho/1695188 to your computer and use it in GitHub Desktop.
Get email from browserID assertion
var arr = assertion.split('.');
var f = JSON.parse(window.atob(arr[1]));
alert( f['principal']['email'] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment