web: fix reset password token flow and auth interceptor
This commit is contained in:
@@ -21,7 +21,16 @@ let refreshInFlight: Promise<void> | null = null;
|
||||
|
||||
function shouldSkipRefresh(config?: InternalAxiosRequestConfig): boolean {
|
||||
const url = config?.url ?? "";
|
||||
return url.includes("/auth/login") || url.includes("/auth/refresh");
|
||||
return (
|
||||
url.includes("/auth/login") ||
|
||||
url.includes("/auth/refresh") ||
|
||||
url.includes("/auth/register") ||
|
||||
url.includes("/auth/check-email") ||
|
||||
url.includes("/auth/verify-email") ||
|
||||
url.includes("/auth/resend-verification") ||
|
||||
url.includes("/auth/request-password-reset") ||
|
||||
url.includes("/auth/reset-password")
|
||||
);
|
||||
}
|
||||
|
||||
http.interceptors.response.use(
|
||||
|
||||
Reference in New Issue
Block a user