chore: add debug logging for auth token
All checks were successful
Build and Deploy / build-and-push (push) Successful in 41s

This commit is contained in:
Cauê Faleiros
2026-04-09 11:37:52 -03:00
parent 9fdd15e292
commit bb072af130

View File

@@ -19,6 +19,9 @@ export const sendToN8n = async (data: any): Promise<void> => {
if (n8nAuthToken) {
// Send exactly what the user typed in the environment variable
headers['Authorization'] = n8nAuthToken;
console.log(`DEBUG: Sending Authorization header starting with: ${n8nAuthToken.substring(0, 8)}...`);
} else {
console.log(`DEBUG: No N8N_AUTH_TOKEN found in environment variables. Sending request WITHOUT Authorization header!`);
}
const response = await axios.post(n8nWebhookUrl, data, { headers });