What problem does it solve?
This Skill provides a comprehensive guide and boilerplate for creating custom authentication plugins for the Better Auth framework, ensuring structured, secure, and feature-rich authentication solutions.
Core Features & Use Cases
- Plugin Architecture: Defines server/client plugin structure, file organization, and core components.
- Schema Extension: Guides on extending database schemas for user and custom data.
- Endpoint Creation: Demonstrates creating GET (read) and POST (mutation) endpoints with validation, authentication, and error handling.
- Advanced Features: Covers pagination, filtering, searching, sorting, hooks, and middleware for robust API design.
- Use Case: Develop a custom plugin for Better Auth to manage user roles and permissions, including endpoints for listing, creating, and updating roles, with built-in pagination and filtering.
Quick Start
Use the better-auth-plugin skill to create a new plugin named 'my-custom-auth-plugin' with user schema extensions and basic CRUD endpoints for managing user profiles.