Skip to content

Introduction

Nuxt auth is an unofficial module for Nuxt that aims to provide a complete solution for authentication.

  • Complete, as no external authentication service is required. It provides registration and login with email/password or directly via OAuth2 providers.

  • Data layer agnostic, it works with any data source: database, ORM, backend API.

  • Edge compatible, thanks to Nitro and Jose the module can run on edge environments.

  • Email customization, it provides the needed flows for email verification and password reset with customizable email templates.

  • Ready to use starters nuxt-starter, prisma-cloudflare.

Installation

Add @bg-dev/nuxt-auth to your Nuxt modules:

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