sidebase

sidebase/nuxt-auth

TypeScript MIT Web Dev

Authentication built for Nuxt! Easily add authentication via OAuth providers, credentials or Email Magic URLs!

1.5k stars
191 forks
recent
GitHub

1.5k

Stars

191

Forks

83

Open issues

30

Contributors

v1.3.1 30 Jun 2026

AI Analysis

A Nuxt 3+ authentication module that integrates Auth.js/NextAuth.js or provides a local provider with credential and refresh token support. It serves teams building universal Nuxt applications who need production-grade authentication with OAuth, credentials, or magic links—particularly suitable for developers already invested in the Nuxt ecosystem who want native DX rather than generic solutions.

Web Dev Library Discovery value: 5/10
Documentation 9/10
Activity 10/10
Community 8/10
Code quality 7/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

nuxt-authentication oauth-integration session-management typescript-first jwt-refresh-tokens
Actively maintained Well documented MIT licensed Niche/specialized use case Beginner friendly Production ready
Deep Analysis · Based on README and public signals
3d ago

Nuxt-native authentication module offering OAuth, credentials, and magic links with Auth.js or local backend support

nuxt-auth is a TypeScript authentication module for Nuxt 3+ applications, providing two provider strategies: Auth.js integration for server-side session management with OAuth support, and a local provider for credential-based authentication against external backends. Built by Sidebase, it sits between framework-agnostic solutions (Auth.js, Better Auth) and Nuxt-specific adoption, targeting developers building full-stack Nuxt applications who want authentication without framework context-switching.

Origin

Created October 2022, nuxt-auth emerged as Nuxt 3's ecosystem matured, addressing the gap between existing NextAuth.js patterns and Nuxt's specific rendering and composable model. It wraps Auth.js/NextAuth.js for Nuxt's universal apps rather than attempting to replace upstream libraries.

Growth

Repository gained 1,546 stars over ~3.75 years with modest recent velocity (2 stars in last 7 days as of 2026-07-07). Growth plateaued relative to framework-agnostic competitors, likely because adoption is constrained to Nuxt ecosystem rather than across web frameworks. Last commit 2026-06-30 indicates ongoing maintenance rather than abandoned state.

In production

Adoption not verified through README or public metrics. No enterprise case studies, deployment counts, or production user testimonials documented. Presence of demo application (nuxt-auth-example) and documented quick-start suggest some real usage, but scale and breadth unknown. Downloads per month visible in badge but figure not extractable from README excerpt.

Code analysis
Architecture

Appears to be a Nuxt 3 module wrapper around Auth.js and a custom local provider implementation. README documents two distinct provider paths: authjs (leveraging the 23k-star NextAuth.js library) and local (custom credential flow). Composables (`useAuth`) provide client-side session state and methods; server utilities (`getServerSession`, `getToken`) handle protected endpoints. Middleware patterns for route protection suggested but implementation not visible in README.

Tests

not documented in README

Maintenance

Last push 2026-06-30 (7 days before evaluation date) confirms active maintenance. Repository shows non-zero velocity in recent months. No evidence of abandonment. Rate of change appears measured rather than aggressive—consistent with mature, dependency-stable module rather than active feature expansion.

Honest verdict

ADOPT IF: you are building Nuxt 3+ full-stack applications and need OAuth or credential authentication with native composable DX, and Auth.js patterns align with your backend design. AVOID IF: you need framework portability, require managed authentication (Auth0, Clerk), or are not committed to Nuxt long-term—the module's value is Nuxt-specific. MONITOR IF: you are evaluating Nuxt for a new project and want to confirm authentication ecosystem stability; recent maintenance is positive but adoption breadth remains undocumented.

Independent dimensions

Mainstream potential

3/10

Technical importance

6/10

Adoption evidence

3/10

Risks
  • Adoption limited to Nuxt ecosystem—switching frameworks would require re-architecture. May not accumulate critical mass of third-party providers or integrations compared to framework-agnostic solutions.
  • Dependency on Auth.js/NextAuth.js upstream library means inherited breaking changes and deprecations. Auth.js version compatibility not detailed in README.
  • Real-world production adoption not verified; scale and reliability in multi-tenant or high-traffic scenarios unknown.
  • TypeScript-only module; no mention of runtime stability testing, performance benchmarks, or load-testing evidence in README.
  • Maintenance appears steady but team size and long-term commitment by Sidebase organization not documented.
Prediction

nuxt-auth will likely remain a stable, niche-appropriate solution for Nuxt developers, maintaining slow but steady adoption within that ecosystem. Unlikely to cross into mainstream framework-agnostic adoption given competitive pressure from Better Auth and NextAuth.js. May gain incremental users as Nuxt 3 ecosystem matures, but mainstream leadership by other projects is probable.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

TypeScript
92.3%
Vue
7.2%
JavaScript
0.5%

Information

Language
TypeScript
License
MIT
Last updated
1w ago
Created
45mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

nextauthjs

nextauthjs/next-auth

Auth.js is an open-source authentication library designed for modern web...

28.3k TypeScript Security
auth0

auth0/nextjs-auth0

The Auth0 Next.js SDK provides a production-ready authentication library for...

2.3k TypeScript Web Dev
better-auth

better-auth/better-auth

Better Auth is a comprehensive, framework-agnostic authentication and...

29.1k TypeScript Security
nuxt

nuxt/nuxt

Nuxt is a full-stack web framework built on top of Vue.js that supports...

60.6k TypeScript Web Dev
nuxt

nuxt/modules

Nuxt Modules is a curated registry and discovery platform for Nuxt ecosystem...

1k TypeScript Web Dev
vs. alternatives
NextAuth.js (28,290 stars)

Framework-agnostic, supports Next.js and other frameworks; nuxt-auth is a Nuxt-specific wrapper around Auth.js (NextAuth.js successor). NextAuth.js dominates but requires framework adaptation; nuxt-auth offers native Nuxt DX but limits portability.

Better Auth (28,967 stars)

Framework-agnostic authentication library with modern TypeScript-first design. Competes at the foundation level; nuxt-auth builds on Auth.js rather than replacing it, so targets different positioning (Nuxt native vs. framework-agnostic).

Auth0 Next.js SDK (2,305 stars)

Vendor-specific authentication service with framework SDKs. nuxt-auth is framework-specific but vendor-agnostic (supports multiple OAuth providers); targets DIY and self-hosted scenarios rather than managed auth services.

Nuxt ecosystem modules (1,044 stars, Nuxt Modules org)

nuxt-auth competes for mindshare within Nuxt's official module ecosystem. 1,546 stars suggest reasonable uptake among Nuxt developers but lower than ecosystem leader modules.