📣Smithery's MCP Proxy and managed identity shut down on October 31.See what's changing
nuxt-better-auth
onmax/nuxt-better-auth
Security
490
About
SKILL.md
About
Use when implementing auth in Nuxt apps with @onmax/nuxt-better-auth - provides useUserSession composable, server auth helpers, route protection, and Better Auth plugins integration.
SKILL.md
Nuxt Better Auth
Use the smallest reference that matches the task.
Pick a reference
Task
Read
Install the module, configure environment variables, or create config files
Confirm the consumer's installed package version supports each API you use. The published skill may be newer than the consumer's lockfile.
Enforce protected API reads and mutations server-side with requireUserSession(event). Route rules and page meta also control navigation.
Navigate only to validated local redirect paths.
In clientOnly mode, do not use local server helpers or expect SSR session hydration.
After server-side changes to session payload fields, call refreshSessionCookieCache(event). Wrap custom client auth endpoints that create or change the current session with runWithSessionRefresh().
Before finishing an implementation, run the consumer's typecheck and the narrowest relevant auth test.