Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
suzalflueck committed Aug 22, 2024
1 parent 8bb1d3a commit fea8770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/common/apiService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios, { type AxiosInstance, type AxiosRequestConfig, type AxiosResponse } from 'axios';
import axios, { type AxiosInstance, type AxiosResponse } from 'axios';

// Buffer concurrent requests while refresh token is being acquired
let failedQueue: {
Expand All @@ -21,9 +21,9 @@ function processQueue(error: any, token: string | null = null): void {
// Create new non-global axios instance and intercept strategy
const apiAxios: AxiosInstance = axios.create();
const intercept = apiAxios.interceptors.response.use(
(config: AxiosRequestConfig) => config,
(config: AxiosResponse) => config,
(error: any) => {
const originalRequest: AxiosRequestConfig = error.config;
const originalRequest: AxiosResponse = error.config;
if (error.response.status !== 401) {
return Promise.reject(error);
}
Expand Down

0 comments on commit fea8770

Please sign in to comment.