HTMLify
NotBeforeError.js
Views: 6 | Author: cody
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; |