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

Function keyFunc

test/verify.tests.js:117–121  ·  view source on GitHub ↗
(header, callback)

Source from the content-addressed store, hash-verified

115
116 it('simple callback', function (done) {
117 const keyFunc = function(header, callback) {
118 assert.deepEqual(header, { alg: 'HS256', typ: 'JWT' });
119
120 callback(undefined, key);
121 };
122
123 jwt.verify(token, keyFunc, options, function (err, p) {
124 assert.isNull(err);

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected