//! Reads the stored authentication credentials from disk.
//!
//! `~/.anesis/auth.json` contains a JSON-serialised [`User`] struct written
//! by the login flow. Every command that requires authentication calls
//! [`get_auth_user`] to load and validate the token before making requests.
use ;
use Result;
use crate::;
/// Loads and deserialises the stored [`User`] credentials.
///
/// Returns [`AnesisError::NotLoggedIn`] (via `anyhow::Error`) if the file is
/// absent or unreadable, so callers receive a user-friendly error message.