Skip to content
This is a MooTools client library for the BrowserID Protocol.
JavaScript PHP
Find file
Latest commit 4459f6f @thinkphp added source php verifier
Failed to load latest commit information.
Demos added compressed
Docs definition
Source added source php verifier added references
package.yml added a valid category


This is a MooTools client library for the BrowserID Protocol. BrowserID is a new way for users to log into web sites using their email address. It aims to provide a secure way of proving your identity to servers across the internet, without having to create separate usernames and passwords each time. Instead of a new username, it uses your email address as you identity which allows it to be descentralized since anyone can send you an email verification message.


How to Use

Include the BrowserID include.js library in your site by adding the following script tag to your pages:

    <script src="" type="text/javascript"></script>
    <script type="text/javascript" src="mootools.js"></script>
    <script type="text/javascript" src="browserID.js.js"></script>

Adding a pretty button:

    <button id="login"><img src="" alt="sign in with browser ID"></button>

When DOM is ready:

    window.addEvent('domready', function(){

                        if(assertion) {
                          //got an assertion, now send it up to the server for verification
                        } else {
                           alert("I still don't know you")

     function verify(assertion) {

         var browserid = new BrowserID(assertion, {

                         onComplete: function(response){

                             //if the server successfully verifies the assertion we
                             //updating the UI by calling 'loggedIn()'
                             if(response.status == 'okay') {


                             //otherwise we handle the login failure by calling 'failure()'
                             } else {

     function loggedIn(email) {
         //do stuff with email
         var p = new Element('p').set('text','Logged In as: ' + email)

     function failure(f) {
         //do stuff with failure
         alert('Failure reason: ' + f.reason) 


Something went wrong with that request. Please try again.