|
| 1 | +--- |
| 2 | +title: AuthConfig |
| 3 | +description: AuthConfig Schema Reference |
| 4 | +--- |
| 5 | + |
| 6 | +## Properties |
| 7 | + |
| 8 | +| Property | Type | Required | Description | |
| 9 | +| :--- | :--- | :--- | :--- | |
| 10 | +| **name** | `string` | ✅ | Configuration name (snake_case) | |
| 11 | +| **label** | `string` | ✅ | Display label | |
| 12 | +| **driver** | `string` | optional | The underlying authentication implementation driver | |
| 13 | +| **strategies** | `Enum<'email_password' \| 'magic_link' \| 'oauth' \| 'passkey' \| 'otp' \| 'anonymous'>[]` | ✅ | Enabled authentication strategies | |
| 14 | +| **baseUrl** | `string` | ✅ | Application base URL | |
| 15 | +| **secret** | `string` | ✅ | Secret key for signing (min 32 chars) | |
| 16 | +| **emailPassword** | `object` | optional | | |
| 17 | +| **magicLink** | `object` | optional | | |
| 18 | +| **passkey** | `object` | optional | | |
| 19 | +| **oauth** | `object` | optional | | |
| 20 | +| **session** | `object` | optional | | |
| 21 | +| **rateLimit** | `object` | optional | | |
| 22 | +| **csrf** | `object` | optional | | |
| 23 | +| **accountLinking** | `object` | optional | | |
| 24 | +| **twoFactor** | `object` | optional | | |
| 25 | +| **userFieldMapping** | `object` | optional | | |
| 26 | +| **database** | `object` | optional | | |
| 27 | +| **plugins** | `object[]` | optional | | |
| 28 | +| **hooks** | `object` | optional | Authentication lifecycle hooks | |
| 29 | +| **security** | `object` | optional | Advanced security settings | |
| 30 | +| **email** | `object` | optional | Email configuration | |
| 31 | +| **ui** | `object` | optional | UI customization | |
| 32 | +| **active** | `boolean` | optional | Whether this provider is active | |
| 33 | +| **allowRegistration** | `boolean` | optional | Allow new user registration | |
0 commit comments