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.
This commit is contained in:
giancarlo
2024-04-15 19:21:40 +08:00
parent f5e8d9a329
commit c2bc9c5ed2

View File

@@ -5,7 +5,7 @@ import { z } from 'zod';
const providers: z.ZodType<Provider> = 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.',