NotBeforeError.js 362 B

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