From 9f229cb5cd4ced79da2b6f217ac3dfc9a4b7bcd7 Mon Sep 17 00:00:00 2001 From: Sam Piper Date: Tue, 19 Nov 2024 16:21:55 +0000 Subject: [PATCH] fix: refreshes work properly now --- apps/forge/src/api/axiosInstance.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/forge/src/api/axiosInstance.ts b/apps/forge/src/api/axiosInstance.ts index 8fb8687..e94623e 100644 --- a/apps/forge/src/api/axiosInstance.ts +++ b/apps/forge/src/api/axiosInstance.ts @@ -160,15 +160,6 @@ class AxiosAuthInstance { return Promise.reject(error); } - // Don't intercept /users/me 401s - if ( - error.config?.url?.includes("/users/me") && - error.response?.status === 401 && - error.response?.data?.message === "Unauthorized" - ) { - return Promise.reject(error); - } - // Handle other 401s with refresh attempt if (error instanceof AxiosError && error.response?.status === 401) { try {