style: auto format whole project
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { TBeforeRequest } from "@automatisch/types";
|
||||
import { TBeforeRequest } from '@automatisch/types';
|
||||
|
||||
const addAuthHeader: TBeforeRequest = ($, requestConfig) => {
|
||||
if (requestConfig.headers && $.auth.data?.accessToken) {
|
||||
requestConfig.headers.Authorization = `Bearer ${$.auth.data.accessToken}`
|
||||
requestConfig.headers.Authorization = `Bearer ${$.auth.data.accessToken}`;
|
||||
}
|
||||
|
||||
return requestConfig;
|
||||
}
|
||||
};
|
||||
|
||||
export default addAuthHeader;
|
||||
|
Reference in New Issue
Block a user