GT2/GT2-iOS/node_modules/jsonwebtoken/.history/tokenGenerator_201707141157...

18 lines
487 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
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) {
return jwt.v(payload, this.secretOrPrivateKey, verifyOptions);
}