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

Function failure

sign.js:103–108  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

101 }, options.header);
102
103 function failure(err) {
104 if (callback) {
105 return callback(err);
106 }
107 throw err;
108 }
109
110 if (!secretOrPrivateKey && options.algorithm !== 'none') {
111 return failure(new Error('secretOrPrivateKey must have a value'));

Callers 1

sign.jsFile · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected