Skip to content

trandaison/nuxt-3-auth

Repository files navigation

Nuxt 3 auth Module

npm version npm downloads License Nuxt

A simple authentication module for Nuxt 3

Features

  • 🤝  Compatible with pinia, nuxtjs/i18n, ofetch.
  • 🚀  Built in pages and compositions.
  • ⚙️  Support refresh tokens

Quick Setup

  1. Add @trandaison/nuxt-3-auth dependency to your project
# Using pnpm pnpm add -D @trandaison/nuxt-3-auth # Using yarn yarn add --dev @trandaison/nuxt-3-auth # Using npm npm install --save-dev @trandaison/nuxt-3-auth
  1. Add @trandaison/nuxt-3-auth to the modules section of nuxt.config.ts
export default defineNuxtConfig({ modules: [ '@trandaison/nuxt-3-auth' ] })

That's it! You can now use Nuxt 3 auth Module in your Nuxt app ✨

Development

# Install dependencies npm install # Generate type stubs npm run dev:prepare # Develop with the playground npm run dev # Build the playground npm run dev:build # Run ESLint npm run lint # Run Vitest npm run test npm run test:watch # Release new version npm run release

About

A simple authentication module for Nuxt 3

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5