refactor: enforce strict linting rules, replace forEach with for...of loops, and remove console logging throughout the frontend.

This commit is contained in:
ramvignesh-b
2026-04-13 14:30:17 +05:30
parent 2776aac69a
commit 12763ab7ab
12 changed files with 38 additions and 37 deletions
-2
View File
@@ -48,8 +48,6 @@ api.interceptors.response.use(
originalRequest.headers.Authorization = `Bearer ${newAccessToken}`;
return api(originalRequest);
} catch (refreshError) {
// Refresh failed, perform logout to clear tokens
console.error("Session expired, logging out...");
useAuthStore.getState().clearAuth();
return Promise.reject(refreshError);
}