From e19dbda5eda75574db162b4dd0cee461afe7b50d Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Sun, 26 May 2024 19:41:56 -0400 Subject: [PATCH] fix: headscale expiry can be a literal 0 --- app/utils/config/headscale.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/config/headscale.ts b/app/utils/config/headscale.ts index 92369ad..fd6f61f 100644 --- a/app/utils/config/headscale.ts +++ b/app/utils/config/headscale.ts @@ -96,7 +96,7 @@ const HeadscaleConfig = z.object({ allowed_users: z.array(z.string()).optional(), allowed_groups: z.array(z.string()).optional(), strip_email_domain: z.boolean().default(true), - expiry: z.string().default('180d'), + expiry: z.union([z.string(), z.literal(0)]).default('180d'), use_expiry_from_token: z.boolean().default(false), }).optional(),