const addAuthHeader = ($, requestConfig) => { | |
if ($.auth.data?.accessToken) { | |
requestConfig.headers.Authorization = `${$.auth.data.tokenType} ${$.auth.data.accessToken}`; | |
} | |
return requestConfig; | |
}; | |
export default addAuthHeader; | |
const addAuthHeader = ($, requestConfig) => { | |
if ($.auth.data?.accessToken) { | |
requestConfig.headers.Authorization = `${$.auth.data.tokenType} ${$.auth.data.accessToken}`; | |
} | |
return requestConfig; | |
}; | |
export default addAuthHeader; | |