Skip to content

Commit

Permalink
fix: sonar code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-4116 committed Nov 14, 2023
1 parent 0f0b419 commit 725939f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cdk/v2/destinations/gladly/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ const identifierTypeKey = 'context.externalId.0.identifierType';

const getHeaders = (destination) => {
const { apiToken, userName } = destination.Config;
const credentials = `${userName}:${apiToken}`;
const base64Credentials = base64Convertor(credentials);
return {
'Content-Type': 'application/json',
Authorization: `Basic ${base64Convertor(`${userName}:${apiToken}`)}`,
Authorization: `Basic ${base64Credentials}`,
};
};

Expand Down

0 comments on commit 725939f

Please sign in to comment.