diff --git a/index.js b/index.js index 506f95d21e2ce97b9e2ff3a3b0b7f9ed58908cbf..4a8b627792b54a58748d9fca14c8cb2c744d9a76 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,14 @@ async function start(fields, cozyParameters) { } // Prevent missing configuration - if (!baseUrl || !apiAuthKey || !contractId || !sgeLogin) { + if ( + !baseUrl || + !apiAuthKey || + !contractId || + !sgeLogin || + !fields.apiToken || + !fields.boBaseUrl + ) { log('error', `Missing configuration secrets`) throw errors.VENDOR_DOWN }