fix(auth): store bearer tokens in native credentials

This commit is contained in:
2026-07-10 07:57:44 -04:00
parent 34ac842078
commit 94afa23a69
26 changed files with 2316 additions and 286 deletions
+3 -1
View File
@@ -13,6 +13,7 @@
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum SyncConnectionState {
SignedOut,
CredentialUnavailable { message: String },
SignedIn,
AwaitingDeviceApproval,
SyncReady { last_synced_at_secs: u64 },
@@ -104,7 +105,8 @@ impl SyncStatus {
#[must_use]
pub fn new(connection: SyncConnectionState, objects: Vec<SyncObjectStatus>) -> Self {
let failed_objects = match &connection {
SyncConnectionState::SyncError { .. } => 1,
SyncConnectionState::CredentialUnavailable { .. }
| SyncConnectionState::SyncError { .. } => 1,
_ => 0,
};
Self { connection, pending_objects: 0, failed_objects, objects }