Skip to main content

attempt_key_exchange_blocking

Function attempt_key_exchange_blocking 

Source
pub async fn attempt_key_exchange_blocking(
    client: &RestClient,
    priv_b64: &str,
    user_id: &str,
) -> bool
Expand description

Compose RestClient::retry_key_bundle + poll_key_bundle so callers in the CLI (initial auth login, auth retry-key, and the push/pull auto-retry path) share a single implementation. Returns true if a bundle arrived and the master key was persisted via auth_session::persist_received_master_key; false otherwise.

Exercised end-to-end by the CLI integration tests against wiremock; not re-tested in cinch-core because it is a pure composition over already unit-tested functions.