An open API service indexing awesome lists of open source software.

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

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*