# sidebase/nuxt-auth

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

Repository: https://github.com/sidebase/nuxt-auth
Canonical: https://ross.abutalabs.com/products/nuxt-auth
Homepage: https://auth.sidebase.io
Language: TypeScript
License: MIT
License Family: permissive
Topics: authentication, nuxt, users, session, typescript, local, refresh
Last push: 2026-08-19T15:51:10+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 78, longevity 100
- inputs: {"age_days": 1410, "days_push": 14, "days_rel": 64, "gap_med": 50.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1548, forks 183 (observed 2026-08-28T04:05:01.815746+00:00)

## What it is
@sidebase/nuxt-auth is a Nuxt 3+ module that adds authentication to universal Nuxt applications via OAuth providers, credentials, or email magic URLs. It wraps Auth.js/NextAuth.js (authjs provider) or supports custom local/refresh token flows, with built-in session management, middleware protection, and auto-generated REST API routes.

## Use cases
- add google or github oauth login to a nuxt app
- add email and password authentication to nuxt 3
- login users with magic links sent by email
- protect nuxt pages with auth middleware
- manage user sessions in vue components and composables
- refresh access tokens in the background
- use nextauth with nuxt instead of next.js

## When to choose
- you are building a Nuxt 3+ app and need authentication out of the box
- you want OAuth provider support with minimal configuration
- you want session management integrated with Nuxt composables and middleware
- you have an external backend and need a credential/refresh-token flow for a static Nuxt app

## When to avoid
- your project is not built on Nuxt/Vue
- you need full control over the auth server implementation rather than wrapping Auth.js
- you need authentication for a static-only site without any server or backend

## Facets
- artifact type: library
- maturity: active
- function: auth, middleware
- domain: web-development, security, developer-tools
- platform: cross-platform
- tags: nuxt, nuxt-module, oauth, nextauth, authjs, vue, typescript, magic-links, refresh-tokens, session, nodejs, web-server

## Member repositories
- sidebase/nuxt-auth (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.815746+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:26.754072+00:00, confidence not recorded.
  - readme: https://github.com/sidebase/nuxt-auth (fetched 2026-08-28T04:05:01.815746+00:00, sha 288faa3b4125)
  - homepage: https://auth.sidebase.io (fetched 2026-08-29T11:31:30.045132+00:00, sha 71564986dc35)
  - site_page: https://auth.sidebase.io/guide/getting-started/introduction (fetched 2026-08-29T11:31:30.054024+00:00, sha 30de570a8410)
- Data as of 2026-08-30T08:39:29.467469+00:00.
