feat(extractors): add OptionalCookieUser and RequiredCookieUser

This commit is contained in:
2026-05-04 13:34:31 +02:00
parent 450468ef3d
commit e5097c22dd
4 changed files with 256 additions and 2 deletions

View File

@@ -134,6 +134,7 @@ mod tests {
impl UserRepository for PanicUserRepo {
async fn find_by_email(&self, _: &Email) -> Result<Option<User>, DomainError> { panic!("unexpected") }
async fn save(&self, _: &User) -> Result<(), DomainError> { panic!("unexpected") }
async fn find_by_id(&self, _: &domain::value_objects::UserId) -> Result<Option<User>, DomainError> { panic!("unexpected") }
}
#[async_trait]