mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-03 16:29:03 +02:00
fix: show more user-friendly error message if QR code has expired
This commit is contained in:
@@ -95,6 +95,11 @@
|
||||
}
|
||||
// Stop retrying when the server reports a non-transient failure
|
||||
clearTimers();
|
||||
|
||||
if (isAxiosError(error) && error.response?.status === 401) {
|
||||
errorMessage = m.device_login_request_expired();
|
||||
return;
|
||||
}
|
||||
errorMessage = getAxiosErrorMessage(error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user