TokenExpiredError.js 395 B

12345678910111213
  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;