1
2
3
4
5
6
7
8
9
10
11
12
use crate::{OroClient, OroClientError};

impl OroClient {
    pub async fn delete_token(&self, token: &String) -> Result<(), OroClientError> {
        self.client
            .delete(self.registry.join(&format!("-/user/token/{token}"))?)
            .header("X-Oro-Registry", self.registry.to_string())
            .send()
            .await?;
        Ok(())
    }
}