Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

jwtToken works, however Unauthorized message on the backend never changes #207

Open
LukasZvikas opened this issue Mar 3, 2018 · 0 comments

Comments

@LukasZvikas
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant