text: import axios from "axios";
  
  const setAuthToken = token => {
    if (token) {
      // Apply To Every Request
      axios.defaults.headers.common["Authorization"] = token;
    } else {
      // Delete Auth Header
      delete axios.defaults.headers.common["Authorization"];
    }
  };
  
  export default setAuthToken;
  