Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

Add User Authentication with NuxtAuthUtils

In this lesson, you'll integrate user authentication into your Nuxt application using NuxtAuthUtils. You'll create a composable for authentication, set up a login page, and add a profile menu component to manage user sessions.

Note: Netlify has since added secret scanning, which causes the build to fail because Nuxt Auth Utils includes the NUXT_SESSION_PASSWORD in the build. To fix this, you will need to add the environment variable SECRETS_SCAN_OMIT_KEYS with a value of NUXT_SESSION_PASSWORD.

Nuxt Auth Utils: https://github.com/atinux/nuxt-auth-utils

Netlify secrets scanning: https://docs.netlify.com/build/environment-variables/secrets-controller/#configure-secrets-scanning