{"size": 740, "ext": "js", "max_stars_repo_path": "src/utils/refresh.js", "max_stars_repo_name": "FlyingVespa/Capstone-FE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/refresh.js", "max_issues_repo_name": "FlyingVespa/Capstone-FE", "max_issues_repo_issues_event_min_datetime": "2021-11-10T20:13:52.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-10T20:13:52.000Z", "max_forks_repo_path": "src/utils/refresh.js", "max_forks_repo_name": "FlyingVespa/Capstone-FE", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 33.6363636364, "max_line_length": 68, "alphanum_fraction": 0.6351351351}
// import axios, { AxiosError, AxiosResponse } from "axios";
// const baseURL = process.env.REACT_APP_BACKEND_URL;
// // import { refreshTokens } from "./endpoints"
// // Axios instance
// const backend = axios.create({ baseURL, withCredentials: true });

// backend.interceptors.response.use(
//   (response: AxiosResponse) => Promise.resolve(response),
//   async (error: AxiosError) => {
//     if (!error.response) return Promise.reject(error);
//     const failedRequest = error.config;

//     if (
//       error.response.status === 401 &&
//       failedRequest.url !== "/auth/refreshTokens"
//     ) {
//       await refreshTokens();
//       return backend(failedRequest);
//     } else return Promise.reject(error);
//   }
// );
