Skip to main content

perform_cpace

Function perform_cpace 

Source
pub(super) async fn perform_cpace(
    session: &EnrollmentSession<'_>,
    verification_code: &str,
    msg_a: Option<MsgA>,
    rest: &RestClient,
    timing: &Timing,
) -> Result<Exchange, OnePasswordError>
Expand description

Runs the whole exchange over rest with a fresh random client secret.

A retry after a wrong code passes the msg_a it waited for. Without one it is requested here.