Authentication
Our authentication system is based on simply requiring a user to be logged in to access a page. We are using local storage to store a token that is sent to the server to verify the login status of the user. If the user is not logged in, they are redirected to the login page.
Login
Once the user is logged in, the token is stored in local storage and the user is redirected to the home page.
Logout
When the user logs out, the token is removed from local storage and the user is redirected to the login page.
Register
When the user registers, they are redirected to the login page.