pub(super) async fn enroll_device(
username: &str,
sign_in_address: &str,
sign_in_token: &str,
ui: &dyn SsoUi,
rest: &RestClient,
timing: &Timing,
) -> Result<CredentialBundle, OnePasswordError>Expand description
Enrolls this device and returns the credential bundle an enrolled device shared.
The context is closed with end_enrollment when this ends, unless the future is dropped first.
An enrollment that is canceled, from the UI or at the verification code prompt, or that fails
after the server handed out its uuid is also canceled on the server, so the approving device
stops waiting.