DEV Community

Discussion on: What is your preferred way to handle authentication in SPA?

Collapse
 
light_eliee profile image
Sagnik Haldar

The problem with using only redux is if a user refreshes his browser his state by default would revert back to default value of "not logged in". I am currently facing that same dilemma , thinking about levering both redux-store along with the local storage for the Oauth flow.

Any suggestions or thoughts would be appreciated.