Now when we have private routes in our API, lets implement the same for the client. We will use react router functionality to restrict unauthorised user to see the page and will redirect him to login page.
Repos: https://github.com/nim-f/recognition-...
https://github.com/nim-f/rekognition-...
React router https://reactrouter.com/en/main
React cookie https://www.npmjs.com/package/react-c...