Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/StanScates/react-native-jwt
React Native compatible JSON Web Token encoder / decoder
https://github.com/StanScates/react-native-jwt
Last synced: about 1 month ago
JSON representation
React Native compatible JSON Web Token encoder / decoder
- Host: GitHub
- URL: https://github.com/StanScates/react-native-jwt
- Owner: StanScates
- Created: 2016-02-29T02:16:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-02T11:31:17.000Z (almost 9 years ago)
- Last Synced: 2024-11-08T03:08:29.796Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 43
- Watchers: 3
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-react-native - react-native-jwt ★37 - React native compatible JSON web token utility (Components / Backend)
- awesome-react-native - react-native-jwt ★37 - React native compatible JSON web token utility (Components / Backend)
- awesome-react-native - react-native-jwt ★37 - React native compatible JSON web token utility (Components / Backend)
- awesome-react-native-ui - react-native-jwt ★19 - React native compatible JSON web token utility (Components / Backend)
- awesome-react-native - react-native-jwt ★37 - React native compatible JSON web token utility (Components / Backend)
README
##react-native-jwt
###React Native compatible JSON Web Token encoder / decoderThis package is essentially just [node-jwt-simple](https://github.com/hokaccha/node-jwt-simple) modified to use [react-native-crypto](https://github.com/mvayngrib/react-native-crypto) and [base-64](https://github.com/mathiasbynens/base64).
## Install
1. First, install [rn-nodeify](https://www.npmjs.com/package/rn-nodeify): `npm install -g rn-nodeify`2. Then, install [react-native-randombytes](https://github.com/mvayngrib/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](https://github.com/hokaccha/node-jwt-simple) for further usage instructions.
## License
MIT