pub async fn authorize(name: &str, key: &str) -> color_eyre::Result<bool> {
        Ok(Hypothesis::new(name, key)?
            .fetch_user_profile()
            .await?
            .userid
            == Some(UserAccountID(format!("acct:{}@hypothes.is", name))))
    }
/// Check if user can be authorized
Check if user can be authorized
Check if user can be authorized
pub async fn authorize(name: &str, key: &str) -> color_eyre::Result<bool> {
        Ok(Hypothesis::new(name, key)?
            .fetch_user_profile()
            .await?
            .userid
            == Some(UserAccountID(format!("acct:{}@hypothes.is", name))))
    }
pub async fn authorize ( name : & str , key : & str ) -> color_eyre :: Result < bool > { Ok ( Hypothesis :: new ( name , key ) ? . fetch_user_profile ( ) . await ? . userid == Some ( UserAccountID ( format ! ( " " name ) ) ) ) }
Check if user can be authorized
Check if user can be authorized
name
&str
key
&str
name
&str
key
&str