feat(vtiger-crm): add vtiger crm integration
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const addAuthHeader = ($, requestConfig) => {
|
||||
const { data } = $.auth;
|
||||
|
||||
if (data?.username && data?.accessKey) {
|
||||
requestConfig.headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||
requestConfig.auth = {
|
||||
username: data.username,
|
||||
password: data.accessKey,
|
||||
};
|
||||
}
|
||||
|
||||
return requestConfig;
|
||||
};
|
||||
|
||||
export default addAuthHeader;
|
Reference in New Issue
Block a user