New advertisers: 50% off your first month with code FIRSTMONTHSee slots
onmax avatar

Nuxt Better Auth

Authentication guide for Nuxt apps using the Better Auth module, with a reference file for each task.

skills.sh installs
2.1K
GitHub stars
730
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers installation, client session state, server session enforcement, route protection, plugins, database setup, client-only mode, and inferred types
  • Points to a specific reference file (such as references/server-auth.md) for each task, so only the needed guidance is loaded
  • Enforces server-side checks with requireUserSession(event) and restricts post-login navigation to validated local redirect paths
  • Designed for Nuxt developers adding or maintaining auth, with a typecheck and narrow auth test run before finishing

Install

$ npx -y skills add onmax/nuxt-skills --skill nuxt-better-auth -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Nuxt Better Auth

Use the smallest reference that matches the task.

Pick a reference

TaskRead
Install the module, configure environment variables, or create config filesreferences/installation.md
Read client session state, build auth forms, call plugins, or fetch auth-bound datareferences/client-auth.md
Read or enforce sessions in server handlers, create sessions, or refresh cached session datareferences/server-auth.md
Protect pages or API routes and configure redirectsreferences/route-protection.md
Register Better Auth plugins and their client companionsreferences/plugins.md
Configure NuxtHub, generated schema, or secondary storagereferences/database.md
Connect a Nuxt frontend to an external Better Auth serverreferences/client-only.md
Use inferred auth types or add project fieldsreferences/types.md

Rules that apply across tasks

Details

Repository
github.com/onmax/nuxt-skills
Categories
Backend & APIs, Frontend & UI Code

More from onmax/nuxt-skills

All 12

Similar to Nuxt Better Auth

More Backend & APIs