This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jwcrypto = require('jwcrypto'); | |
require('jwcrypto/lib/algs/ds'); | |
require('jwcrypto/lib/algs/rs'); | |
exports.sign = function sign(options, callback) { | |
var pubKey = jwcrypto.loadPublicKey(options.pubkey); | |
var privKey = jwcrypto.loadSecretKey(options.privkey); | |
var expiration = new Date(); |