feat: support better-auth (#10215)

This commit is contained in:
YuTengjing
2025-11-27 20:10:40 +08:00
committed by GitHub
parent ef6809461b
commit dc62cc969d
116 changed files with 14959 additions and 1271 deletions

View File

@@ -32,19 +32,17 @@ DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432/${LOBE_DB
DATABASE_DRIVER=node
# Authentication Configuration
# Enable NextAuth authentication
NEXT_PUBLIC_ENABLE_NEXT_AUTH=1
# Enable Better Auth authentication
NEXT_PUBLIC_ENABLE_BETTER_AUTH=1
# NextAuth secret for JWT signing (generate with: openssl rand -base64 32)
NEXT_AUTH_SECRET=${UNSAFE_SECRET}
NEXTAUTH_URL=${APP_URL}
# Better Auth secret for JWT signing (generate with: openssl rand -base64 32)
AUTH_SECRET=${UNSAFE_SECRET}
# Authentication URL
AUTH_URL=${APP_URL}/api/auth
NEXT_PUBLIC_AUTH_URL=${APP_URL}
# SSO providers configuration - using Casdoor for development
NEXT_AUTH_SSO_PROVIDERS=casdoor
AUTH_SSO_PROVIDERS=casdoor
# Casdoor Configuration
# Casdoor service port