Permalink
Browse files

add compatibility with new idp api

  • Loading branch information...
1 parent afbd66d commit 38a829f741719c3913bb98984bb49d494c039d45 @benadida benadida committed Jun 20, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 static/browserid/provision.html
@@ -19,6 +19,9 @@
// Awesome! The user is authenticated as who we want to provision. let's
// generate a keypair
navigator.id.genKeyPair(function(pubkey) {
+ if (typeof(pubkey) == "string")
+ pubkey = JSON.parse(pubkey);
+
// finally, once we have a public key from the browser, we'll certify it, and
// go pass it back
$.ajax({

0 comments on commit 38a829f

Please sign in to comment.