react-redux-jwt-auth-example
react-redux-jwt-auth-example copied to clipboard
Sample project showing possible authentication flow using React, Redux, React-Router, and JWT
I encountered the error `Uncaught Error: imports[1] for react-transform-catch-errors does not look like a React component.` I resolved the issue by removing the `^` from `"redbox-react": "^1.0.4",` in `package.json`, as...
https://github.com/joshgeller/react-redux-jwt-auth-example/blob/8e1e58f2250996aa991ff1149c4460fe2e30a6d9/src/actions/index.js#L2 i think formatting it this way could be better, for readability ``` import { LOGIN_USER_REQUEST, LOGIN_USER_FAILURE, LOGIN_USER_SUCCESS, LOGOUT_USER, FETCH_PROTECTED_DATA_REQUEST, RECEIVE_PROTECTED_DATA } from '../constants'; ```
I'm working on this manual > 1. git clone https://github.com/joshgeller/react-redux-jwt-auth-example.git > 2. npm install > 3. export NODE_ENV=development > 4. node server.js and get this trouble after step 4 `➜...
Hi, I am new in react and want to explore your example. I have followed below steps. Running the Example Locally 1. git clone https://github.com/joshgeller/react-redux-jwt-auth-example.git 2. npm install 3. export...
Josh, I cloned this down. How are you getting access to localStorage? Is that from phantom? When I try that in my react project I get undefined so figure it's...
Hi, I'm new to react. I've started to learn it a few days ago and as I wrote in the title and considering that a component should be dumb and...
Here is an operation from https://github.com/joshgeller/react-redux-jwt-auth-example/blob/master/src/actions/index.js#L63. In `decoded` varibale in not a token. It is only a payload object which is only one third of a token. ``` let decoded...
Now it is able to run the project. But the warning still happens: `Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead.` If I fix this warning app crashes
Receiving the following warning in the Chrome dev console: `Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead.`