nuxt-modulesnuxt-modulesOfficialยท1 Agent Skills Included

better-auth

Nuxt authentication with sessions, route protection, and plugins

Adds complete Better Auth authentication to Nuxt applications with minimal configuration. Handles session state, sign-in forms, server-side enforcement, and route protection without manual wiring. Generates config files and database schema automatically, with optional NuxtHub integration for fast database-backed setups.
npx skills add nuxt-modules/better-auth --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install nuxt-better-auth?โ–ผ

Run `npx skills add nuxt-modules/better-auth --all -g -y` in your terminal to install this skill globally.

How to add authentication to a Nuxt app?โ–ผ

This skill guides your agent through installing the @nuxtjs/better-auth module, creating the server and client config files, and setting the required secret environment variable.

How to protect pages and API routes in Nuxt?โ–ผ

The skill covers route protection using routeRules, definePageMeta({ auth }), and server-side enforcement with requireUserSession(event).

Does it work with an external auth backend?โ–ผ

Yes. Client-only mode connects your Nuxt frontend to a separate Better Auth server without local auth handlers or server config.

Can it generate the database schema automatically?โ–ผ

Yes. With NuxtHub integration, the module reads your auth config and generates the required database tables automatically.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’