feat(google-drive): add new files trigger

This commit is contained in:
Rıdvan Akca
2023-03-22 22:16:44 +03:00
parent 8e1087b818
commit d16d709b72
14 changed files with 263 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;