Skip to main content

bitwarden_unlock

Function bitwarden_unlock 

Source
pub(crate) fn bitwarden_unlock(
    shared: &Shared,
    password: &str,
    provider: i32,
    code: &str,
) -> String
Expand description

Opens the vault with your master password, and the second step’s code when one was asked (provider as Bitwarden numbers them; -1 for none, 100 for the code of a new device). Returns {"ok"}, {"factor": [providers]}, {"new_device"} or {"error"}. The password is never kept.