We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c4509b + 076e90c commit a9f81dcCopy full SHA for a9f81dc
app/lib/reactQueryProvider.tsx
@@ -90,11 +90,15 @@ apiClient.interceptors.response.use(
90
processQueue(null, response.accessToken);
91
return apiClient(originalRequest);
92
} catch (refreshError) {
93
- processQueue(refreshError, null);
94
- removeLocalStorageAll();
95
if (typeof window !== "undefined") {
96
- window.location.href = "/login";
+ const currentPath = window.location.pathname;
+ if (currentPath !== "/signup") {
+ processQueue(refreshError, null);
97
+ removeLocalStorageAll();
98
+ window.location.href = "/login";
99
+ }
100
}
101
+
102
throw refreshError;
103
} finally {
104
isRefreshing = false;
0 commit comments