TypeScript

nuxt3-auth-example

Example of a simple authentication system using Nuxt3

D

damien-hl

Dernière activité 6 nov. 2025
damien-hl/nuxt3-auth-example

386

étoiles

62

forks

1

issues ouvertes

authauthenticationexamplenuxtnuxt3typescriptvue3

Ce README est souvent en anglais.

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:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist

Copy the .env.example file to .env and fill in the values.

cp .env.example .env

Development Server

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

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Checkout the deployment documentation for more information.

Credits

Projets similaires

Provide basic auth your Nuxt.js application

JavaScriptauthenticationbasic-authenticationjavascript
Ppotato4d
308 étoiles8

Authentication for the Web.

TypeScriptauthauthenticationcsrf
Nnextauthjs
28,4 k étoiles4 k

A simple example that shows how to use Nuxt.js with Auth0.

Vuenuxtnuxt-auth0nuxt-example
Nnuxt
708 étoiles151