async fn refresh_authentication(
        &self,
        mut write_lock: RwLockWriteGuard<'_, Credentials>,
    ) -> Result<()> {
        debug!("Refreshing bearer token");
        let result = Self::get_bearer_token(&self.settings).await?;

        write_lock.expires_at = result.expires_at;
        write_lock.access_token = result.access_token;

        debug!("Refreshed bearer token");
        Ok(())
    }
// Get a new bearer token and update save it
Get a new bearer token and update save it
Get a new bearer token and update save it
async fn refresh_authentication(
        &self,
        mut write_lock: RwLockWriteGuard<'_, Credentials>,
    ) -> Result<()> {
        debug!("Refreshing bearer token");
        let result = Self::get_bearer_token(&self.settings).await?;
        write_lock.expires_at = result.expires_at;
        write_lock.access_token = result.access_token;
        debug!("Refreshed bearer token");
        Ok(())
    }
async fn refresh_authentication ( & self , mut write_lock : RwLockWriteGuard < ' _ , Credentials > , ) -> Result < ( ) > { debug ! ( " " ) ; let result = Self :: get_bearer_token ( & self . settings ) . await ? ; write_lock . expires_at = result . expires_at ; write_lock . access_token = result . access_token ; debug ! ( " " ) ; Ok ( ( ) ) }
Get a new bearer token and update save it
Get a new bearer token and update save it
&self
write_lock
RwLockWriteGuard<'_, Credentials>
&self
write_lock
RwLockWriteGuard<'_, Credentials>