feat(reddit): add reddit integration

This commit is contained in:
Rıdvan Akca
2023-11-10 12:47:28 +03:00
parent 3b9aadb90f
commit 354b331b08
14 changed files with 221 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;