From c2bc9c5ed29d332b73c1b8a66996b0ccc2936cf1 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Mon, 15 Apr 2024 19:21:40 +0800 Subject: [PATCH] Update captchaTokenSiteKey validation in auth.config Changed the captchaTokenSiteKey configuration in auth.config.ts. Previously, it could only accept strings of minimum length 1 but now, it is modified to accept any length string, including an empty string. --- apps/web/config/auth.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/config/auth.config.ts b/apps/web/config/auth.config.ts index 0dad2f224..bfe4abf50 100644 --- a/apps/web/config/auth.config.ts +++ b/apps/web/config/auth.config.ts @@ -5,7 +5,7 @@ import { z } from 'zod'; const providers: z.ZodType = getProviders(); const AuthConfigSchema = z.object({ - captchaTokenSiteKey: z.string().min(1).optional(), + captchaTokenSiteKey: z.string().optional(), providers: z.object({ password: z.boolean({ description: 'Enable password authentication.',