pub async fn login(
api_url: Option<&str>,
open_browser: bool,
say: impl FnMut(&str),
) -> Result<LoggedIn>Expand description
Logs this machine in to dvm.run at api_url, else DVM_API_URL, else
https://sandbox.dvm.run, once its user approves the login in their
browser: the key it was given. say is told what to do; with
open_browser, the page that approves it opens here.