diff --git a/packages/contentstack-utilities/src/authentication-handler.ts b/packages/contentstack-utilities/src/authentication-handler.ts index a0ca6ee1a6..f9ebc802a8 100644 --- a/packages/contentstack-utilities/src/authentication-handler.ts +++ b/packages/contentstack-utilities/src/authentication-handler.ts @@ -53,6 +53,7 @@ class AuthenticationHandler { async refreshAccessToken(error: any, maxRetryCount = 1): Promise { if (error.response && error.response.status) { + console.error(error.response); if (maxRetryCount >= 3) { ux.print('Max retry count reached, please login to proceed', { color: 'yellow', @@ -108,7 +109,6 @@ class AuthenticationHandler { resolve(true); }) .catch((error: any) => { - console.log(error); resolve(false); }); } else {