Module 13 of 13 · Media
Imitate login SPA
RR-2. Imitate login React SPA
Create a clone of this Single Page Application
This SPA should imitate a login behavior. At the beginning the user faces a form that accepts only a given username and password (something that will be defined by you). If the combination is incorrect a paragraph message is depicted below (you can put something invalid to see how it works).
If the combination works, then the user is authenticated, and is redirected to the users main page. There are three routes (not important) with some text, and a logout button.
This button, when clicked, should redirect the user, to a temporary page, and after 5 seconds at the starting form page. Completely logged out. The user should no longer have access to the user main page route unless he gives again the correct username and password.