A CodePen by Joe Fiorini. Login & Redirect - An example of performing a login and then redirecting to another page. Also tracks login status, shows username of the current user and validates password (poorly). Of course, you should only do this if you have an authentication API that gives you a secret token to secure every request.

Exercise for the reader:
- Protect posts and comments routes by forcing login first