MCPcopy
hub / github.com/auth0/node-jsonwebtoken / callback

Function callback

test/jwt.hs.tests.js:43–47  ·  view source on GitHub ↗
(err, decoded)

Source from the content-addressed store, hash-verified

41
42 it('should be able to validate without options', function(done) {
43 var callback = function(err, decoded) {
44 assert.ok(decoded.foo);
45 assert.equal('bar', decoded.foo);
46 done();
47 };
48 callback.issuer = "shouldn't affect";
49 jwt.verify(token, secret, callback );
50 });

Callers 5

failureFunction · 0.85
sign.jsFile · 0.85
verifyJWTHelperFunction · 0.85
signJWTHelperFunction · 0.85
keyFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected