You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
389 B

  1. var JsonWebTokenError = function (message, error) {
  2. Error.call(this, message);
  3. Error.captureStackTrace(this, this.constructor);
  4. this.name = 'JsonWebTokenError';
  5. this.message = message;
  6. if (error) this.inner = error;
  7. };
  8. JsonWebTokenError.prototype = Object.create(Error.prototype);
  9. JsonWebTokenError.prototype.constructor = JsonWebTokenError;
  10. module.exports = JsonWebTokenError;