pub async fn authenticate(
        &self,
        refresh_token: &str,
        is_demo: bool,
    ) -> Result<(), Box<dyn Error>> {
        self.auth_info.replace(Some(
            AuthenticationInfo::authenticate(refresh_token, is_demo, &self.client).await?,
        ));

        Ok(())
    }
/// Authenticates using the supplied token.
Authenticates using the supplied token.
Authenticates using the supplied token .
pub async fn authenticate(
        &self,
        refresh_token: &str,
        is_demo: bool,
    ) -> Result<(), Box<dyn Error>> {
        self.auth_info.replace(Some(
            AuthenticationInfo::authenticate(refresh_token, is_demo, &self.client).await?,
        ));
        Ok(())
    }
pub async fn authenticate ( & self , refresh_token : & str , is_demo : bool , ) -> Result < ( ) , Box < dyn Error > > { self . auth_info . replace ( Some ( AuthenticationInfo :: authenticate ( refresh_token , is_demo , & self . client ) . await ? , ) ) ; Ok ( ( ) ) }
Authenticates using the supplied token.
Authenticates using the supplied token .
&self
refresh_token
&str
is_demo
bool
&self
refresh_token
&str
is_demo
bool