@trandaison/nuxt-3-auth
v0.1.7
Published
A simple authentication module for Nuxt 3
Downloads
355
Readme
Nuxt 3 auth Module
A simple authentication module for Nuxt 3
Features
- 🤝 Compatible with pinia, nuxtjs/i18n, ofetch.
- 🚀 Built in pages and compositions.
- ⚙️ Support refresh tokens
Quick Setup
- 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
- Add
@trandaison/nuxt-3-auth
to themodules
section 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 ✨
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