Better Auth Plugins

Extend better-auth with server and client plugins and automatic schema updates.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/MacPhobos/research-mind --skill better-auth-plugins-macphobos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Better Auth Plugins
Source: https://github.com/MacPhobos/research-mind/tree/main/.claude/skills/toolchains-platforms-auth-better-auth-better-auth-plugins
Command: npx skills add https://github.com/MacPhobos/research-mind --skill better-auth-plugins-macphobos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the need to extend authentication functionalities by introducing server and client plugins, ensuring a more robust and adaptable authentication system.

Core Features & Use Cases

  • Server Plugins: Add custom server-side authentication features.
  • Client Plugins: Match client-side methods for seamless integration.
  • Schema Management: Automatically apply schema changes when plugins introduce new tables.
  • Use Case: Integrate two-factor authentication into your existing better-auth setup by importing and configuring the twoFactor plugin.

Quick Start

Import the twoFactor plugin from better-auth/plugins and add it to your plugins array.

Frequently Asked Questions about Better Auth Plugins

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

FAQPage Schema
How do client plugins match server-side authentication methods?

Client plugins match client-side methods for seamless integration, ensuring that custom authentication logic and client-side interactions align with the extended server features.

Can I integrate custom authentication logic into an existing TypeScript setup?

Yes, you can integrate custom authentication logic by adding server and client plugins, which automatically manage schema updates when new tables are introduced.

What is the best way to extend authentication features without modifying the core schema manually?

The best way to extend authentication features is using server and client plugins, which automatically apply schema changes when new tables are added by the plugins.

When do I need to use server plugins for authentication?

You need server plugins when adding custom server-side authentication features, ensuring a more robust and adaptable authentication system for your application.