const jwt = require('./') function TokenGenerator (secretOrPrivateKey, secretOrPublicKey, signOptions) { this.secretOrPrivateKey = secretOrPrivateKey; this.secretOrPublicKey = secretOrPublicKey; this.signOptions = } TokenGenerator.prototype.sign = function(payload, options) { return jwt.sign(payload, this.secretOrPrivateKey, options); } TokenGenerator.prototype.refresh = function(token, verifyOptions) { const payload = jwt.verify(payload, this.secretOrPrivateKey, verifyOptions); }