The BrowserID JavaScript API can be used by web pages to implement BrowserID authentication. Implementing BrowserID support consists of:
- registering callback functions that will be invoked when the user logs in or out
via
navigator.id.watch()
- invoking
navigator.id.request()
when the user clicks a login button on your site. - invoking
navigator.id.logout()
when the user clicks a logout button on your site.