idtoken-verifier
Advanced tools
Changelog
v1.0.0 (2016-12-30)
A lightweight library to decode and verify RS JWT meant for the browser.
var IdTokenVerifier = require('idtoken-verifier');
var verifier = new IdTokenVerifier({
issuer: 'https://my.auth0.com/',
audience: 'gYSNlU4YC4V1YPdqq8zPQcup6rJw1Mbt'
});
verifier.verify(id_token, nonce, function(error, payload) {
...
});
var decoded = verifier.decode(id_token);