Stops users from accessing private pages unless they have been authenticated by the system
Screenshots / Videos:
Any information needed to test this feature:
-The Dashboard route was used to Test this feature, try to visit the '/dashboard' route
-Pen the console and check whether the useEffect(ComponentDidMount) hook of the private component has ran
-A user is logged in by default, you can change the login status in the protected route component
Any issues with the current functionality (optional):
The protected page renders for loggedIn users. However, a user gets redirected to the login page on failed connection
Created a protected route component
What this PR does:
Screenshots / Videos:
Any information needed to test this feature:
-The Dashboard route was used to Test this feature, try to visit the '/dashboard' route -Pen the console and check whether the useEffect(ComponentDidMount) hook of the private component has ran -A user is logged in by default, you can change the login status in the protected route component
Any issues with the current functionality (optional):