Passport.js Example
Steps to test the example:
- Click Login and enter a username and password.
- You'll be redirected to Home. Click on Profile, notice how your session is being used through a token stored in a cookie.
- Click Logout and try to go to Profile again. You'll get redirected to Login.