mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 15:56:56 +00:00
refactor: enforce strict linting rules, replace forEach with for...of loops, and remove console logging throughout the frontend.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user