bitwarden_core::auth::auth_request

Function new_auth_request

source
pub(crate) fn new_auth_request(
    email: &str,
) -> Result<AuthRequestResponse, Error>
Expand description

Initiate a new auth request.

Generates a private key and access code. The pulic key is uploaded to the server and transmitted to another device. Where the user confirms the validity by confirming the fingerprint. The user key is then encrypted using the public key and returned to the initiating device.