diff --git a/src/cdk/v2/destinations/linkedin_ads/utils.js b/src/cdk/v2/destinations/linkedin_ads/utils.js index c0ea33e2e8..f3f7783962 100644 --- a/src/cdk/v2/destinations/linkedin_ads/utils.js +++ b/src/cdk/v2/destinations/linkedin_ads/utils.js @@ -243,6 +243,11 @@ function createResponseArray(metadata, partialStatus) { }); } +/** + * + * @param {*} destinationResponse example: {status : 401, response {"status":401,"serviceErrorCode":65601,"code":"REVOKED_ACCESS_TOKEN","message":"The token used in the request has been revoked by the user"}} + * @returns proper auth error category + */ const getAuthErrCategoryFromStCode = (destinationResponse) => { const { status, response } = destinationResponse; if (status === 401) {