GT2/GT2-Android/node_modules/jsonwebtoken/.history/tokenGenerator_201707141159...

18 lines
501 B
JavaScript

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);
}