fix(auth): force logout on any refresh failure, redirect to login

This commit is contained in:
2026-07-09 12:45:37 +02:00
parent 88eb22d454
commit 7521f15b63

View File

@@ -216,8 +216,13 @@ public sealed class LoginService : ServiceBase {
ForceLogoutReason = error;
await Logout();
ForceLogout?.Invoke(error);
return;
}
} catch { /* best-effort */ }
ForceLogoutReason = "Session expired. Please log in again.";
await Logout();
ForceLogout?.Invoke(ForceLogoutReason);
}
/// <summary>