Skip to main content

handle_vault_share

Function handle_vault_share 

Source
pub(crate) async fn handle_vault_share(
    __arg0: State<AppState>,
    caller: Option<Extension<Caller>>,
    __arg2: Json<ShareBody>,
) -> Response
Expand description

POST /api/v1/vault/share: an agent asks the person to share a login with its own browser profile, so that it can sign in to the login’s site with it (docs/specs/SPEC_VAULT_AGENTS_ENTER_CREDENTIALS_WHEREVER_ASKED_2026_11_16.md A2). Only the person’s yes makes the share, and only for the agent that proved who it is. The agent learns the login’s label and site, never its user name or its password.