Skip to content
Clone
d5939db
14 lines 345 B Rust
use super::{LogoutCmd, LogoutResp};
use super::usecase;
use crate::error::AuthError;
use crate::features::AuthService;
impl AuthService {
pub async fn logout(
&self,
cmd: LogoutCmd,
access_token: Option<String>,
) -> Result<LogoutResp, AuthError> {
usecase::logout(cmd, self, access_token).await
}
}