Configuration
Customize AuthCore to fit your application's needs.
Environment Variables
Complete list of environment variables you can configure:
Required Variables
DATABASE_URL- Database connection stringNEXTAUTH_SECRET- Secret for JWT encryptionNEXTAUTH_URL- Your application URL
Optional Variables
EMAIL_SERVER- SMTP server for emailsWEBHOOK_SECRET- Secret for webhook verificationENABLE_2FA- Enable two-factor authentication
NextAuth Configuration
Customize session behavior, callbacks, and pages:
Security Settings
Configure security features programmatically or via the admin UI:
Tip: You can also manage these settings through the SecuritySettings component in your admin dashboard.
Email Templates
Customize email templates for verification, password reset, and invites:
Custom Styling
Override default styles using Tailwind CSS:
Database Providers
AuthCore supports multiple database providers through Prisma:
MySQL
Recommended for production
mysql://user:pass@host:3306/dbPostgreSQL
Great for complex queries
postgresql://user:pass@host:5432/dbSQLite
Perfect for development
file:./dev.dbFeature Flags
Enable or disable features using environment variables:
| Flag | Default | Description |
|---|---|---|
| ENABLE_2FA | true | Enable two-factor authentication |
| ENABLE_EMAIL_VERIFICATION | true | Require email verification on signup |
| ENABLE_WAITLIST | false | Enable waitlist mode for signups |
| ENABLE_ORGANIZATIONS | true | Enable organization/team features |
Advanced Configuration
Security Configuration →
Lockout policies, restrictions, and attack protection
Webhook Configuration →
Set up webhooks for user events and organization changes
Styling Guide →
Learn how to customize the look and feel
Billing Configuration →
Set up subscriptions and payment processing
Email Setup Guide →
Configure SMTP, service shortcuts, and Render-friendly deployments