I am using react-router-dom to navigate to different pages in my app with some protected routes related to authenticated users.
react-router-dom
The issue is that sometim