https://github.com/kevcodez/react-jwt
Project demonstrating the use of JWT in a React App
https://github.com/kevcodez/react-jwt
babel eslint javascript js jsonwebtoken jwt prop-types react react-redux redux-thunk webpack
Last synced: 6 months ago
JSON representation
Project demonstrating the use of JWT in a React App
- Host: GitHub
- URL: https://github.com/kevcodez/react-jwt
- Owner: kevcodez
- License: mit
- Created: 2017-11-15T09:37:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T09:18:41.000Z (almost 6 years ago)
- Last Synced: 2025-04-22T17:59:17.472Z (8 months ago)
- Topics: babel, eslint, javascript, js, jsonwebtoken, jwt, prop-types, react, react-redux, redux-thunk, webpack
- Language: JavaScript
- Homepage:
- Size: 2.77 MB
- Stars: 9
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# React JWT
This project is based off an [auth0.com Tutorial](https://auth0.com/blog/secure-your-react-and-redux-app-with-jwt-authentication/)
However, the tutorial from auth0 was written in Januar 2016 and quite a few things changed since.
As backend [nodejs-jwt-authentication-sample](https://github.com/auth0-blog/nodejs-jwt-authentication-sample) is used.
## Run Requirements
* NodeJS
* NPM
* Yarn
## Run
Start the [nodejs-jwt-authentication-sample](https://github.com/auth0-blog/nodejs-jwt-authentication-sample)
```
git checkout https://github.com/auth0-blog/nodejs-jwt-authentication-sample.git
cd nodejs-jwt-authentication-sample
npm install
node server.js
```
Start the React App
```
git checkout https://github.com/kevcodez/react-jwt.git
cd react-jwt
yarn
yarn start
```
Access http://localhost:3000/
Default-User is *gonto:gonto*