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.

12 lines
395 B

  1. var JsonWebTokenError = require('./JsonWebTokenError');
  2. var TokenExpiredError = function (message, expiredAt) {
  3. JsonWebTokenError.call(this, message);
  4. this.name = 'TokenExpiredError';
  5. this.expiredAt = expiredAt;
  6. };
  7. TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype);
  8. TokenExpiredError.prototype.constructor = TokenExpiredError;
  9. module.exports = TokenExpiredError;