nuxt-betterauth-admin

Scaffold a Nuxt 4 admin dashboard with BetterAuth cookie authentication.

Updated Oct 8, 2025
One-click install
npx skills add https://github.com/ichabodcole/project-docs-scaffold-template --skill nuxt-betterauth-admin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuxt-betterauth-admin
Source: https://github.com/ichabodcole/project-docs-scaffold-template/tree/main/plugins/recipes/skills/nuxt-betterauth-admin
Command: npx skills add https://github.com/ichabodcole/project-docs-scaffold-template --skill nuxt-betterauth-admin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a Nuxt 4 admin dashboard that authenticates against a BetterAuth + Elysia API backend, using a proxy-based cookie session flow, with role-based access control and user management.

Core Features & Use Cases

  • Proxy-based cookie authentication between Nuxt frontend and Elysia API.
  • Role-based admin access control with server-side guards.
  • Admin user management endpoints and UI scaffolding.
  • End-to-end setup guidance from Nuxt app to API integration.

Quick Start

Initialize the Nuxt 4 admin app, install BetterAuth and configure the proxy routeRules, then run both Nuxt and Elysia servers.

Frequently Asked Questions about nuxt-betterauth-admin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Nuxt 4 admin dashboard authentication against a separate Elysia API?

Proxy-based cookie authentication forwards session credentials between a Nuxt frontend and Elysia API backend. By configuring Nuxt routeRules to proxy /api/** requests, cookies are securely transmitted to the Elysia server, maintaining authenticated sessions across separate services without exposing tokens to client-side JavaScript.

How does role-based access control work with BetterAuth in a Nuxt admin panel?

Role-based access control is enforced using server-side guards within the Nuxt application. The BetterAuth admin plugin exposes specific endpoints that restrict UI access and API operations, ensuring only authorized administrators can interact with protected admin management routes.

Can I use BetterAuth for user management across separate Nuxt and Elysia services?

Yes, BetterAuth supports user management across separate Nuxt and Elysia services. The setup requires installing the BetterAuth admin plugin on the Elysia API to expose user management endpoints, which the Nuxt 4 frontend accesses via configured proxy routeRules.

What is the best way to scaffold a secure admin backend with Nuxt 4 and Elysia?

The best way to scaffold a secure admin backend involves initializing a Nuxt 4 app, installing BetterAuth, and configuring proxy routeRules to an Elysia API. This approach provides role-based access control and user management endpoints for secure administration.

Do I need a BetterAuth admin plugin to expose admin endpoints in my Nuxt application?

Yes, the BetterAuth admin plugin is required to expose admin endpoints for your Nuxt application. It enables role-based access control and user management features by providing the necessary API routes on the Elysia backend service.

Why does my Nuxt routeRules proxy need to forward /api/** to the Elysia API?

The Nuxt routeRules proxy must forward /api/** to the Elysia API to facilitate proxy-based cookie authentication. This forwarding ensures session cookies are securely transmitted directly between servers, maintaining authentication state without cross-origin issues.