//! The cloud session token between runs.
/// Keeps the cloud session token between runs: the OS credential store (Windows
/// Credential Manager, the Keychain...). Calls may block on the OS. The token is a
/// credential: never log it.
pub trait TokenStore: Send + Sync {
/// The saved token, if any.
fn load(&self) -> Result<Option<String>, String>;
fn save(&self, token: &str) -> Result<(), String>;
/// Forgets the token. Not an error when there is none.
fn clear(&self) -> Result<(), String>;
}