react-native-jwt icon indicating copy to clipboard operation
react-native-jwt copied to clipboard

Cannot read property '2' of null when algorithm 'RS256' supplied

Open markearthware opened this issue 9 years ago • 2 comments

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

markearthware avatar Mar 16 '16 12:03 markearthware

I have the same problem as well

Frayion avatar Feb 21 '18 10:02 Frayion

Has anyone solved this? I'm having the same problem now

dontjudgemylife avatar Jun 21 '19 00:06 dontjudgemylife