Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nuxt3-auth-example

> 前端框架
Open source

Example of a simple authentication system using Nuxt3

388 stars0 likes1 views
WebsiteGitHub

About

Example of a simple authentication system using 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.

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

  • Nuxt
  • UnoCSS
  • The Copenhagen Book

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptauthauthenticationexamplenuxt

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架