diff --git a/authentication/src/ory/hooks.tsx b/authentication/src/ory/hooks.tsx index 5c81e04..a03dd8d 100644 --- a/authentication/src/ory/hooks.tsx +++ b/authentication/src/ory/hooks.tsx @@ -18,12 +18,6 @@ export const HandleError = ( return async ( error: AxiosError, ): Promise => { - if (!error.response || error.response?.status === 0) { - window.location.href = `/flow/error?error=${encodeURIComponent( - JSON.stringify(error.response), - )}`; - return Promise.resolve(); - } const responseData = error.response?.data || {};