diff --git a/index.js b/index.js index 317123f44f8868c82bce1470f92cb4afb489652a..cefbb56e814cc26a22598323a38c40395da5ac4d 100644 --- a/index.js +++ b/index.js @@ -89,10 +89,6 @@ async function start(fields, cozyParameters) { // const apiAuthKey = fields.eglAPIAuthKey const baseUrl = cozyParameters.secret.eglBaseURL const apiAuthKey = cozyParameters.secret.eglAPIAuthKey - log('debug', baseUrl) - log('debug', apiAuthKey) - log('debug', fields.login) - log('debug', fields.password) log('info', 'Authenticating ...') const response = await authenticate( @@ -220,6 +216,8 @@ async function authenticate(login, password, baseUrl, apiAuthKey) { try { const data = await fetch(baseUrl + '/connect.aspx', authRequest) const response = await data.json() + log('debug', 'REQUEST : ' + authRequest) + log('debug', 'RESPONSE : ' + response) if (response.codeRetour === 100) { return response