File size: 216 Bytes
3206347
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
const addAuthHeader = ($, requestConfig) => {
  if ($.auth.data?.apiToken) {
    requestConfig.headers.Authorization = `Bearer ${$.auth.data.apiToken}`;
  }

  return requestConfig;
};

export default addAuthHeader;