GitPedia

Nuxt3 auth example

Example of a simple authentication system using Nuxt3

From damien-hlยทUpdated April 12, 2026ยทView on GitHubยท

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.

Cover

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.

bash
cp .env.example .env

Development Server

Start the development server on http://localhost:3000

bash
npm run dev

Production

Build the application for production:

bash
npm run build

Locally preview production build:

bash
npm run preview

Checkout the deployment documentation for more information.

Credits

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from damien-hl/nuxt3-auth-example via the GitHub API.Last fetched: 6/25/2026