react-native-jwt
react-native-jwt copied to clipboard
React Native compatible JSON Web Token encoder / decoder
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...
Hi, The library is not working with the latest react native version. The following error shows up: ``` Object prototype may only be an Object or null ``` I did...
Hi, I am getting this on Windows + Android  Reproducible by doing the following: 1. `react-native init randombytestest` 2. `npm install -g rn-nodeify` 3. `npm install react-native-randombytes --save` 4....
I just followed all the instructions and everything seemed to work right but as soon as I imported jwt I started getting the error `Cannot read property 'split' of undefined`...
Using the React-Native 0.34.0, the output of `jwt.encode(payload, jwtSecret)` doesn't have a valid signature. This doesn't happens on android. Using this code: ``` javascript const testData = {bar: 'baz', bacon:...
Added token expiration time and escaped base64 for payload. Without those changes, it didn't work for me.