A simple authentication module for Nuxt 3
- 🤝 Compatible with pinia, nuxtjs/i18n, ofetch.
- 🚀 Built in pages and compositions.
- ⚙️ Support refresh tokens
- Add
@trandaison/nuxt-3-authdependency 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- Add
@trandaison/nuxt-3-authto themodulessection ofnuxt.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 ✨
# 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