|
|
@@ -110,7 +110,6 @@ export const SetupAxiosInterceptors = () => { |
|
|
|
// ** If token is present add it to request's Authorization Header |
|
|
|
if (isUserLoggedIn()) { |
|
|
|
config.headers.Authorization = `${jwtApplicationConfig.tokenType} ${accessToken}` |
|
|
|
config.data = config.data === undefined ? JSON.stringify({refreshToken:null}) : config.data |
|
|
|
} |
|
|
|
config.headers['X-Authorization'] = process.env.REACT_APP_API_KEY |
|
|
|
return config |
|
|
|