From 30b4d0016bcc47034a3d6cc2d68eeaa85c1cc09d Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Wed, 21 May 2025 00:43:46 +0200 Subject: [PATCH] Update packages/stack-shared/src/schema-fields.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- packages/stack-shared/src/schema-fields.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/stack-shared/src/schema-fields.ts b/packages/stack-shared/src/schema-fields.ts index dfb06fd85..5936cc66b 100644 --- a/packages/stack-shared/src/schema-fields.ts +++ b/packages/stack-shared/src/schema-fields.ts @@ -482,7 +482,6 @@ export const basicAuthorizationHeaderSchema = yupString().test('is-basic-authori // Neon integration export const neonAuthorizationHeaderSchema = basicAuthorizationHeaderSchema.test('is-neon-authorization-header', 'Invalid client_id:client_secret values; did you use the correct values for the Neon integration?', (value) => { if (!value) return true; - console.log("????????????", value, decodeBasicAuthorizationHeader(value)); const [clientId, clientSecret] = decodeBasicAuthorizationHeader(value) ?? throwErr(`Neon authz header invalid? This should've been validated by basicAuthorizationHeaderSchema: ${value}`); for (const neonClientConfig of JSON.parse(process.env.STACK_INTEGRATION_CLIENTS_CONFIG || '[]')) { if (clientId === neonClientConfig.client_id && clientSecret === neonClientConfig.client_secret) return true;