After logging in on website, if the page is refreshed, the user is logged out and the website does not remember the user's login information.
Expected Behavior
The website should remember the user's login information even after the page is refreshed. The user should remain logged in until they manually log out.
To Reproduce
Steps to reproduce the behavior:
Research user-router-dom and React User Login and Authentication
Current Behavior
After logging in on website, if the page is refreshed, the user is logged out and the website does not remember the user's login information.
Expected Behavior
The website should remember the user's login information even after the page is refreshed. The user should remain logged in until they manually log out.
To Reproduce
Steps to reproduce the behavior:
<UserRoute />