feat: handle refreshToken failure

This commit is contained in:
Zamitto 2025-01-16 11:55:13 -03:00
parent 3d0bf11359
commit b06339d362

View File

@ -12,7 +12,9 @@ const openAuthWindow = async (
});
if ([AuthPage.UpdateEmail, AuthPage.UpdatePassword].includes(page)) {
const { accessToken } = await HydraApi.refreshToken();
const { accessToken } = await HydraApi.refreshToken().catch(() => {
return { accessToken: "" };
});
searchParams.set("token", accessToken);
}