Passport.js Example

Steps to test the example:

  1. Click Login and enter a username and password.
  2. You'll be redirected to Home. Click on Profile, 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 Login.