Address reviews

This commit is contained in:
x032205
2025-08-11 15:15:48 -07:00
parent d1e8ae3c98
commit ce8653e908
3 changed files with 7 additions and 6 deletions
@@ -13,9 +13,10 @@ import { AuthMode } from "@app/services/auth/auth-type";
const maxTimePeriodSchema = z
.string()
.trim()
.optional()
.nullish()
.transform((val, ctx) => {
if (val === undefined) return undefined;
if (!val || val === "permanent") return null;
const parsedMs = ms(val);
if (typeof parsedMs !== "number" || parsedMs <= 0) {