How to prevent Redux State from Reseting when page reloaded in React to protect some routes?

I’m facing an issue where the Redux state resets when the page is reloaded. This affects route protection based on authentication status.

I implemented a component (AuthInput) to handle routing based on the authentication status retrieved from Redux