fix(auth): revoke desktop sessions safely

This commit is contained in:
2026-07-10 08:57:00 -04:00
parent 94afa23a69
commit 2f346abaea
21 changed files with 1375 additions and 455 deletions
+3
View File
@@ -14,6 +14,8 @@
pub enum SyncConnectionState {
SignedOut,
CredentialUnavailable { message: String },
SigningOut,
SignOutError { message: String },
SignedIn,
AwaitingDeviceApproval,
SyncReady { last_synced_at_secs: u64 },
@@ -106,6 +108,7 @@ impl SyncStatus {
pub fn new(connection: SyncConnectionState, objects: Vec<SyncObjectStatus>) -> Self {
let failed_objects = match &connection {
SyncConnectionState::CredentialUnavailable { .. }
| SyncConnectionState::SignOutError { .. }
| SyncConnectionState::SyncError { .. } => 1,
_ => 0,
};