Skip to main content

login

Function login 

Source
pub async fn login(
    base: &str,
    client: &str,
    show: impl FnOnce(&str, &str),
) -> Result<Approved, Error>
Expand description

Sign in to base as client: show gets the address and code to approve in the browser, then the server is polled until someone approves or denies it, or it expires.