1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Axum migration: logout route

This commit is contained in:
Quentin Gliech
2022-03-25 15:50:28 +01:00
parent 5e95c705d4
commit 6e7d0a6cfd
5 changed files with 59 additions and 37 deletions

View File

@@ -38,6 +38,13 @@ impl SessionInfo {
}
}
/// Mark the session as ended
#[must_use]
pub fn mark_session_ended(mut self) -> Self {
self.current = None;
self
}
/// Load the [`BrowserSession`] from database
pub async fn load_session(
&self,