feat(google-calendar): add google calendar integration

This commit is contained in:
Rıdvan Akca
2023-09-18 15:12:29 +03:00
parent c193f9334f
commit 9a192b708e
13 changed files with 271 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;