tuwunel_admin/token/
revoke.rs1use tuwunel_core::Result;
2
3use crate::admin_command;
4
5#[admin_command]
6pub(super) async fn revoke(&self, token: String) -> Result {
7 self.services
8 .registration_tokens
9 .revoke_token(&token)
10 .await?;
11
12 self.write_str("Token revoked successfully.")
13 .await
14}