async fn attempt_access(
client: &PasswordManagerClient,
send_id: &str,
access_key: &SendAccessKey,
inputs: &ReceiveInputs,
) -> Result<String>Expand description
Negotiate a send-access token, prompting for whatever credential the server says the Send
needs. Mirrors the legacy attemptAccess: ask with no credentials first and branch on the
typed send_access_error_type the server returns.
Legacy wraps every token request in a 3-attempt retry loop (getTokenWithRetry) for a
{kind: "expired"} case that only exists because browser/extension storage caches tokens
between calls. bw receive is a single-shot process with no token cache — the token is minted
and consumed inside this one invocation — so there is nothing to expire and no retry here.