erikras / erikras/react-redux-universal-hot-example

Always Unauthorized on the backend server, but information still being retrieved about the user.

Open
#1,416 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

For some reason I am always getting Unauthorized on the backend server, but still can access the data. I'm using passport-jwt, passport-local strategies. Also, as soon as I log in, it always says unauthorized firstly in the network log, however after I refresh the page, the information appears, so there is clearly a delay in accessing the data. I'm not sure how this can happen with the backend server always showing unauthorized.

//passport.js
screen shot 2018-03-03 at 12 33 44 am

//Auth reducer
screen shot 2018-03-03 at 12 34 00 am

//Auth actions
screen shot 2018-03-03 at 12 34 14 am

//Auth controller
screen shot 2018-03-03 at 12 36 53 am

screen shot 2018-03-03 at 12 40 15 am

Would really appreciate any help. Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.