
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
browserid-local-verify
Advanced tools
A node.js verification library for local verification of BrowserID assertions.
This repository contains a node.js library for local verification of BrowserID assertions. It is used by this standalone verifier.
The library has the following scope and features:
This library is targeted at robust local verification, to subsume all of the features required by mozilla's implementation of assertion verification in Persona. If you're looking for a clean and simple library appropriate for website use (using the verifier hosted by persona), see browserid-verify.
npm install persona-verifier-lib
var browserid = require('browserid-local-verify');
browserid.verify({
assertion: assertion,
audience: "http://example.com"
}, function(err, details) {
console.log(details);
});
var browserid = require('browserid-local-verify');
browserid.lookup({
domain: "mozilla.org"
}, function(err, details) {
// check err
console.log(details.authority);
console.log(details.pubKey);
console.log(details.delegationChain);
});
All functions accept configuration parameters documented below.
browserid.lookup({
httpTimeout: 5.0,
domain: "mozilla.org"
}, function(err, details) {
...
});
Or you can allocate a library instance. This allows you to specify configuration once at instantiation time. Any configuration parameters or function arguments may be specified a instantiation time and become the default for subsequently invoked functions:
var BrowserID = require('browserid-local-verify');
var b = new BrowserID({ httpTimeout: 20.0 });
b.lookup({ domain: "mozilla.org" }, function(err, details) {
// ...
});
The BrowserID class emits events:
var b = new BrowserID();
b.on('debug', function(msg) {
console.log('debug output:', msg);
});
b.on('metric', function(metric, value) {
console.log(metric + ":", value);
});
b.lookup("mozilla.org", function(err, details) {
// ...
});
FAQs
A node.js verification library for local verification of BrowserID assertions.
We found that browserid-local-verify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.