Closed isaachinman closed 8 years ago
Send other property, like checkCookie
, and handle that in your middleware. Or use sagas to handle that in a prettier way.
@gabriel-miranda Sorry, could you expand more? Where would I send checkCookie
, and what middleware?
Also, I came across reactGo, which is basically a fork of this project, except with sagas. Do you have any experience with it?
In our app, we store a JWT inside a secure cookie to do initial authentication and bounce away from logged-in routes if a user isn't logged in.
Basically, I want to check for this cookie inside the
load
function insrc/redux/modules/auth.js
.The load function by default looks like this:
Instead of calling to an endpoint, I just need to examine the request itself.
Sorry for posting a blatantly help-related issue, but I am having trouble figuring this out.