You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-24 23:01:05 +03:00
storage: split the repository trait
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
use axum_extra::extract::cookie::{Cookie, PrivateCookieJar};
|
||||
use mas_data_model::BrowserSession;
|
||||
use mas_storage::{user::BrowserSessionRepository, Repository};
|
||||
use mas_storage::{user::BrowserSessionRepository, RepositoryAccess};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use ulid::Ulid;
|
||||
|
||||
@@ -45,7 +45,7 @@ impl SessionInfo {
|
||||
/// Load the [`BrowserSession`] from database
|
||||
pub async fn load_session<E>(
|
||||
&self,
|
||||
repo: &mut (impl Repository<Error = E> + ?Sized),
|
||||
repo: &mut impl RepositoryAccess<Error = E>,
|
||||
) -> Result<Option<BrowserSession>, E> {
|
||||
let session_id = if let Some(id) = self.current {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user