Nuxt Auth Utils: Secure, Simple, and Flexible Logins
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

Getting Started with Nuxt Auth Utils and User Sessions

In this lesson, learn how to set a session from the server side with information that identifies a user. That session is then encrypted and stored in a HTTPOnly cookie that’s automatically sent with every subsequent request - meaning the server can authenticate who the request came from.

// use to boot new nuxt project
// don't forget to include eslint and nuxt ui modules
npm create nuxt@latest
// use to run migration recipes at the beginning of the lesson
npx codemod@latest nuxt/4/migration-recipe

Links