Cookie-based authentication example

Steps to test the functionality:

  1. Click signup and create an account, this will also log you in.
  2. Click home and click profile again, notice how your session is being used through a token stored in a cookie.
  3. Click logout and try to go to profile again. You'll get redirected to the `/login` route.