origin_accounts/lib.rs
1//! Account management (ADR-0016).
2//!
3//! An account is one authenticated identity at one connector. A connector may have
4//! several; every cache key, sync record and credential is scoped by `AccountId` from
5//! the start, because retrofitting that later touches everything.
6//!
7//! The account list lives in [`origin_storage::Storage`]; the credentials live in the
8//! OS credential store (ADR-0008). Deleting the database therefore loses the list of
9//! connected accounts, not the credentials — and a resync restores it.
10
11mod service;
12mod store;
13
14pub use service::AccountService;
15pub use store::AccountStore;
16
17/// Storage namespace holding account records.
18pub const ACCOUNTS_NAMESPACE: &str = "origin.accounts";