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
362 B

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