Skip to content

Commit

Permalink
fix: dest response example
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Apr 1, 2024
1 parent 7a339c1 commit f25b2cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cdk/v2/destinations/linkedin_ads/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f25b2cf

Please sign in to comment.