API Reference
Complete API reference for Better Auth plugin options and types
API Reference
This document provides a complete reference for all Better Auth plugin options and types.
Plugin Options
BetterAuthPluginOptions
The main configuration type for the Better Auth plugin.
Core Types
CollectionConfigExtend
Extends a PayloadCMS collection configuration.
LoggerConfig
Configuration for logging.
Plugin-Specific Types
Two-Factor Authentication
Admin Plugin
OpenAPI
Collection Extension Types
User Collection Extension
Utility Types
Hook
Field
Example Usage
Type Safety
All types are fully compatible with TypeScript and provide:
- Autocompletion
- Type checking
- Documentation hints
- Error prevention