Better Auth Plugins
Pairing server and client plugins for advanced Better Auth features like 2FA, passkeys, and JWT in TypeScript.
- CCM score
- 49 of 100
- skills.sh installs
- 380
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers adding server plugins to
pluginsand matching client plugins frombetter-auth/client/pluginsfor TypeScript projects - Walks through a two-factor setup using
twoFactor()on the server andtwoFactorClient({ twoFactorPage })on the client - Enforces matching server and client plugin registration and keeps
nextCookieslast in the server plugin list - Includes the
generateandmigrateCLI steps for plugins that add database tables, with a plugin index reference
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill better-auth-plugins -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Better Auth Plugins
Goals
- Add server plugins to extend auth features.
- Add client plugins for matching client methods.
- Apply schema changes when plugins add tables.
Quick start
- Import the plugin from
better-auth/pluginsand add it toplugins. - Run migrations (
generateormigrate) when required. - Add the client plugin from
better-auth/client/plugins.
Example: Two-factor authentication
import { betterAuth } from "better-auth";
import { twoFactor } from "better-auth/plugins";
export const auth = betterAuth({
plugins: [twoFactor()],
});
import { createAuthClient } from "better-auth/client";
import { twoFactorClient } from "better-auth/client/plugins";
export const authClient = createAuthClient({
plugins: [twoFactorClient({ twoFactorPage: "/two-factor" })],
});
Migration reminder
Run the CLI when a plugin adds tables:
npx @better-auth/cli generate
npx @better-auth/cli migrate
Guardrails
- Add server and client plugins together to keep APIs aligned.
- Keep
nextCookies(if used) last in the server plugin list. - Review plugin docs for required schema and env variables.
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Categories
- Backend & APIs, Security
- First seen
- Jun 3, 2026
Questions
What does the better-auth-plugins skill do?
The better-auth-plugins skill gives an agent the Better Auth plugin system for TypeScript, covering advanced features such as two-factor authentication, magic link, passkey, username, JWT and organizations. It shows how to add each feature through a server plugin and a matching client plugin.
How do I install the better-auth-plugins skill?
Run npx -y skills add bobmatnyc/claude-mpm-skills --skill better-auth-plugins -y in your project to install it. Once installed, better-auth-plugins lets the agent add server and client plugins to a Better Auth setup and run the CLI migrations when a plugin adds tables.
What does better-auth-plugins need before I use it?
better-auth-plugins assumes a TypeScript project that uses Better Auth, since it imports plugins from better-auth/plugins and better-auth/client/plugins. Its guidance also says to review each plugin's docs for required schema and environment variables, and to run npx @better-auth/cli generate or migrate when a plugin adds tables.
Is better-auth-plugins for backend or API work?
better-auth-plugins sits in the Backend and APIs category on Claude Marketplaces. Its focus is adding advanced authentication features to a TypeScript auth setup, and it keeps server and client plugins aligned so the APIs match.
More from bobmatnyc/claude-mpm-skills
All 154- Git Worktrees379
- Vb Winforms377
- Nextjs Core375
- Headlessui374
- Fastapi Local Dev373
- Sec Edgar Pipeline372
- Vb Core371
- Vercel Networking Domains371
- Svelte370
- Env Manager368
- Mongodb368
- Digitalocean Containers Images365
- Hono Jsx365
- Phoenix Api Channels365
- Langgraph364
- Pr Quality Checklist364
- Vercel Observability364
- Media Transcoding363
- Writing Plans363
- Ecto Patterns362
- Clap361
- Graphql358
- Phoenix Ops358
- Vercel Security Access357
Similar to Better Auth Plugins
More Backend & APIsbetter-auth-best-practicesbetter-auth/skills134.9K installsComplete Better Auth setup covering server, client, database adapters, sessions, and security configuration.
better-auth-corebobmatnyc/claude-mpm-skills386 installsSetup guide for the Better Auth instance, server handlers, client wiring, and session access in TypeScript apps.
two-factor-authentication-best-practicesbetter-auth/skills37.9K installsSetup, enrollment, and recovery guide for Better Auth's twoFactor plugin covering TOTP, email/SMS OTP, and backup codes.
better-authmrgoonie/claudekit-skills414 installsFramework-agnostic TypeScript authentication with built-in email/password, OAuth, and plugin-based 2FA, passkeys, and RBAC.
better-auth-authenticationbobmatnyc/claude-mpm-skills416 installsAuthentication flow guide for Better Auth covering email/password, social providers, and verification in TypeScript.
nuxt-better-authonmax/nuxt-skills2.2K installsAuthentication guide for Nuxt apps using the Better Auth module, with a reference file for each task.