feat(pipedrive): add pipedrive integration

This commit is contained in:
Rıdvan Akca
2023-09-21 16:25:36 +03:00
committed by Faruk AYDIN
parent 6a66b65f2a
commit f53909355f
10 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { TBeforeRequest } from '@automatisch/types';
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
if ($.auth.data?.accessToken) {
requestConfig.headers.Authorization = `${$.auth.data.tokenType} ${$.auth.data.accessToken}`;
}
return requestConfig;
};
export default addAuthHeader;