Nuxt3 auth example
Example of a simple authentication system using Nuxt3
This application is a simple example of how to implement a local authentication system using Nuxt. The project is written primarily in TypeScript, first published in 2022. Key topics include: auth, authentication, example, nuxt, nuxt3.
Nuxt 3 Auth example
This application is a simple example of how to implement a local authentication system using Nuxt.

Features
- ๐ Login with email and password
- ๐ก๏ธ Guest, private and admin only pages
- ๐ฅ Keep user authenticated after page refresh
Setup
Make sure to install the dependencies:
bash# yarn yarn install # npm npm install # pnpm pnpm install --shamefully-hoist
Copy the .env.example file to .env and fill in the values.
bashcp .env.example .env
Development Server
Start the development server on http://localhost:3000
bashnpm run dev
Production
Build the application for production:
bashnpm run build
Locally preview production build:
bashnpm run preview
Checkout the deployment documentation for more information.
Credits
Contributors
Showing top 1 contributor by commit count.
This article is auto-generated from damien-hl/nuxt3-auth-example via the GitHub API.Last fetched: 6/25/2026
