mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 05:24:55 +03:00
feat: handle refreshToken failure
This commit is contained in:
parent
3d0bf11359
commit
b06339d362
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user