Private routes with React router and Serverless framework API

Опубликовано: 06 Июнь 2026
на канале: Code & bird
282
8

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...