n4auth/node_modules/jsonwebtoken/lib/JsonWebTokenError.js

15 lines
428 B
JavaScript
Raw Permalink Normal View History

2021-07-15 20:10:20 +00:00
var JsonWebTokenError = function (message, error) {
Error.call(this, message);
if(Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = 'JsonWebTokenError';
this.message = message;
if (error) this.inner = error;
};
JsonWebTokenError.prototype = Object.create(Error.prototype);
JsonWebTokenError.prototype.constructor = JsonWebTokenError;
module.exports = JsonWebTokenError;