Skip to content

becem-gharbi/nuxt-auth

Repository files navigation

Nuxt Auth

npm version npm downloads License Nuxt

A fairly complete solution to handle authentication for your Nuxt project

Features

  • ✔️ Email/password authentication
  • ✔️ Email verification & password reset flows
  • ✔️ Oauth login (Google, Github ...)
  • ✔️ Route middleware protection
  • ✔️ Database agnostic
  • ✔️ Custom backend option
  • ✔️ Auth operations via useAuth composable
  • ✔️ Auto refresh of access token via useAuthFetch composable
  • ✔️ Add dynamic custom claims to access token
  • ✔️ Customizable email templates
  • ✔️ User session management via useAuthSession composable
  • ✔️ Edge deployment on Vercel, Netlify, Cloudflare ...
  • ✔️ Ready to use starter

Installation

Add @bg-dev/nuxt-auth dependency to your project

npx nuxi module add @bg-dev/nuxt-auth

Documentation

The documentation website can be found here.

License

MIT License