The following error is thrown when i call this line of code
var token = jwt.encode(payload, secret, 'RS256');
Cannot read property '2' of null
Stack trace
module.exports fixProc.js:13
parseKeys index.js:18
sign sign.js:12
Sign.signMethod [as sign]
browser.js: 45
I can get a token back when I use the other algorithms.
Cheers,
Mark