On Github hainp / introduction-to-persona
navigator.id.watch({ loggedInUser: 'bob@example.org', onlogin: function(assertion) { //Call to backend API }, onlogout: function() { //Call to backend API } });
{ "public-key": { "algorithm":"RS", "n":"a long number", "e":"65537" }, "authentication": "/browserid/sign_in.html", "provisioning": "/browserid/provision.html" }