aboutsummaryrefslogblamecommitdiffstats
path: root/backend/node_modules/jsonwebtoken/lib/NotBeforeError.js
blob: 7b30084fb993130180d853e358cd693ac308d5fd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                      
var JsonWebTokenError = require('./JsonWebTokenError');

var NotBeforeError = function (message, date) {
  JsonWebTokenError.call(this, message);
  this.name = 'NotBeforeError';
  this.date = date;
};

NotBeforeError.prototype = Object.create(JsonWebTokenError.prototype);

NotBeforeError.prototype.constructor = NotBeforeError;

module.exports = NotBeforeError;