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

  return requestConfig;
};

export default addAuthHeader;