import { store } from "../redux/store"; import axios from "axios"; const auth = store.getState().authKeyReducer; console.log("STORE", auth); const fetchQuery = axios.create({ timeout: 10000, /* headers: { 'Authorization': auth !== null ? `${auth.authKey.token_type} ${auth.authKey.access_token}` : '' } */ }); export default fetchQuery;