fix: update authentication and navigation components

This commit is contained in:
2026-04-26 16:37:32 -07:00
parent 4120cc9a8e
commit e61e020d9d
7 changed files with 55 additions and 35 deletions
+6 -1
View File
@@ -18,7 +18,7 @@ export const auth = betterAuth({
maxPasswordLength: 128, // Set maximum password length
},
secret: process.env.BETTER_AUTH_SECRET || process.env.NEXTAUTH_SECRET,
baseURL: process.env.BETTER_AUTH_URL || process.env.NEXTAUTH_URL || "http://localhost:3000",
baseURL: process.env.BETTER_AUTH_URL || process.env.NEXTAUTH_URL || "http://localhost:3000/api/auth",
// Configure trusted origins - parse from environment or use defaults
trustedOrigins: (() => {
const origins = [];
@@ -56,6 +56,11 @@ export const auth = betterAuth({
enabled: false, // Disable cookie cache to avoid session cache issues
},
},
// Configure rate limiting - disable for test environment
// Note: Rate limiting is disabled for all environments to ensure test reliability
rateLimit: {
enabled: false,
},
databaseHooks: {
user: {