Plugin Options

Detailed documentation of all available plugin configuration options

Plugin Options ⚙️

Better Auth provides extensive configuration options to customize its behavior. This guide shows you how to simply add your configurations.

Basic Structure 📋

The plugin accepts a configuration object with the following structure:

betterAuthPlugin({
  betterAuth: {
    // Better Auth core options
    // Basically you can copy/paste
    // your current betterAuth config and just remove database
  },
  extendsCollections: {
    // Collection extensions
  },
  logs: 'info' // Logging level
})

Better Auth Options 🔧

The betterAuth option allows you to configure core Better Auth settings. Refer to the original documentation from better-auth.com/docs - Introduction | Better Auth.

Collection Extensions 📦

The extendsCollections property allow to extend the collections generated by the plugin.

On this page