comparar · Authentication
Both work with Nuxt. In a kit you pick one, and your agent gets the rule to use only that one.
| Better Auth | Nuxt Auth Utils | |
|---|---|---|
| What it is | Server authentication and sessions for non-Next.js applications. | Sealed-cookie sessions and OAuth helpers for Nuxt. |
| Frameworks | Nuxt, SvelteKit, Node.js, Bun | Nuxt |
| Paquetes | better-auth@^1.7.25 | nuxt-auth-utils@^0.6.2 |
| Skill oficial | better-auth/skills@better-auth-best-practices, better-auth/skills@better-auth-security-best-practices | — |
| How your agent uses it | Configure a server-only Better Auth instance, the framework handler and a database adapter. Generate a cryptographic secret, set trusted origins and run reviewed migrations before enabling login. Initialize lazily so a build does not require credentials. | Use setUserSession/getUserSession/requireUserSession on the server. Check resource ownership separately from login. The module needs a random NUXT_SESSION_PASSWORD of at least 32 characters at runtime; never expose it to the client. |
| Kits that offer it | api-elysia, api-express, api-fastify, api-hono, api-nestjs, cli-node, discord-bot, github-action, mcp-server-ts, saas-nuxt, saas-sveltekit, slack-app, vscode-extension, web-nuxt, web-sveltekit | saas-nuxt, web-nuxt |
| Chosen in | 0 installs | 0 installs |