async fn login(
username: &str,
account: &SsoAccount,
client_info: &ClientInfo,
sso_session: &SsoSession,
srp_x: &[u8],
rest: &RestClient,
) -> Result<(AesKey, RestClient), OnePasswordError>Expand description
Signs in with the sign-in token the SSO login earned, proving knowledge of the SRP x from the credential bundle. Returns the session key and a client that signs its requests with it.
Fails with Unsupported when the server asks for a second factor.