CoastalCommitsPastes/server/node_modules/jsonwebtoken/lib/TokenExpiredError.js
2022-03-06 16:46:59 -08:00

13 lines
No EOL
395 B
JavaScript

var JsonWebTokenError = require('./JsonWebTokenError');
var TokenExpiredError = function (message, expiredAt) {
JsonWebTokenError.call(this, message);
this.name = 'TokenExpiredError';
this.expiredAt = expiredAt;
};
TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype);
TokenExpiredError.prototype.constructor = TokenExpiredError;
module.exports = TokenExpiredError;