React Native compatible JSON Web Token encoder / decoder
Switch branches/tags
Nothing to show
Clone or download
Stan Scates
Stan Scates Update
Latest commit 87cdde6 Feb 28, 2016
Permalink
Failed to load latest commit information.
src Initial commit Feb 29, 2016
.gitignore Initial commit Feb 29, 2016
README.md Initial commit Feb 29, 2016
index.js Initial commit Feb 29, 2016
package.json Update Feb 29, 2016

README.md

##react-native-jwt ###React Native compatible JSON Web Token encoder / decoder

This package is essentially just node-jwt-simple modified to use react-native-crypto and base-64.

Install

  1. First, install rn-nodeify: npm install -g rn-nodeify

  2. Then, install react-native-randombytes into your React Native project. Ensure that you import and link it properly as per the installation instructions.

  3. Install react-native-jwt itself via npm install react-native-jwt

  4. After the installation completes, the postinstall script will run rn-nodeify --install --hack, which should update your package.json with the necessary browserify shims.

  5. Restart your React Native packager process, and you should be able to require('react-native-jwt'). Refer to node-jwt-simple for further usage instructions.

License

MIT