react-native-jwt
react-native-jwt copied to clipboard
Cannot read property '2' of null when algorithm 'RS256' supplied
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
I have the same problem as well
Has anyone solved this? I'm having the same problem now