I new to react. I am trying to do login for that i used redux-react-session package from npm to store sessions.
I am able to store session and autherise routes based on login. But when i refresh page i want to restore user session into state.
As per document of redux-react-session we can user sessionService.loadUser() method to get user back.
This function return promise in response. But i am not able to get excat user object. Its returing user as a promise.
i have spend almost 10 hrs on it.
Can anyone help?