Nuxt Iron Session

nuxt-iron-session - Authentication example

This example creates an authentication system that uses a signed and encrypted cookie to store session data.

Features

  • Logged in status synchronized between browser windows/tabs
  • Layout based on logged in status
  • Session data is signed and encrypted in a cookie

Steps to test the functionality:

  1. Click login and enter your GitHub username.
  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.