From d5adc5bd1f64ce58d043a21c45c0e98964ac4a17 Mon Sep 17 00:00:00 2001 From: Teresa Gobble Date: Thu, 15 Feb 2024 11:47:53 -0600 Subject: [PATCH] Update packages/faustwp-cli/src/healthCheck/validateFaustEnvVars.ts Co-authored-by: John Parris --- packages/faustwp-cli/src/healthCheck/validateFaustEnvVars.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/faustwp-cli/src/healthCheck/validateFaustEnvVars.ts b/packages/faustwp-cli/src/healthCheck/validateFaustEnvVars.ts index 7f9b046aa..0f5ecf89d 100644 --- a/packages/faustwp-cli/src/healthCheck/validateFaustEnvVars.ts +++ b/packages/faustwp-cli/src/healthCheck/validateFaustEnvVars.ts @@ -49,7 +49,7 @@ export const validateFaustEnvVars = async () => { // send secret key const apiUrl = `${getWpUrl()}/wp-json/faustwp/v1/validate_secret_key`; const headers = { - 'x-faustwp-secret': getWpSecret() || '', + 'x-faustwp-secret': getWpSecret(), }; try { const response = await fetch(apiUrl, {