feat: init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
use crate::error::AppError;
|
||||
use crate::service::AuthService;
|
||||
use crate::session::Session;
|
||||
|
||||
impl AuthService {
|
||||
pub async fn auth_logout(&self, context: &Session) -> Result<(), AppError> {
|
||||
if let Some(user_uid) = context.user() {
|
||||
tracing::info!(user_uid = %user_uid, "User logged out");
|
||||
}
|
||||
context.clear_user();
|
||||
context.clear();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user