a LOTTTA more migration hoopla shii

This commit is contained in:
user
2026-02-28 16:20:47 +02:00
parent 4d107c8cab
commit 2c8cd1fd15
18 changed files with 208 additions and 81 deletions

View File

@@ -22,6 +22,7 @@ export const settingsSchema = v.object({
betterAuthUrl: v.string(),
betterAuthSecret: v.string(),
twoFaSecret: v.string(),
twofaSessionExpiryMinutes: v.optional(v.number()),
twofaRequiredHours: v.optional(v.number()),
@@ -107,6 +108,7 @@ function loadSettings(): Settings {
betterAuthUrl: getEnv("BETTER_AUTH_URL"),
betterAuthSecret: getEnv("BETTER_AUTH_SECRET"),
twoFaSecret: getEnv("TWOFA_SECRET"),
twofaSessionExpiryMinutes: getEnvNumber(
"TWOFA_SESSION_EXPIRY_MINUTES",
10,