fix(auth): force logout on any refresh failure, redirect to login
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user