I am trying to develop a website using Reactjs that is able to authenticate the user with Cognito from AWS.
The application requires private routes that cannot allow the user to view pages without signing in.
There is a very similar example here [login to view URL]
I am not being able to solve the problem of my code, so I need someone with experience on Reactjs, React-Router and Cognito that can help me to solve the problem on my code.
The code can be accessed here --> [login to view URL]
Once you access the code you can insert the username and password, which are shown as placeholder - you can also open the console to see that the aws authentication works ok, alhtought after the authentication I am not able to go to another page (try clicking at Home or List button in the Nav bar).
The work its simple, review the code, show the errors and send me the corrected code with explanation about what was wrong.
I am also looking for someone to work in the future as someone with experience that can review my code and provide improvements.