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.
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
//Auth reducer
//Auth actions
//Auth controller
Would really appreciate any help. Thank you.