Files
k-tv/crates/domain/src/ports/auth.rs
Gabriel Kaszewski 98a54245b1 domain crate code quality cleanup
strip all comments, extract tests to tests/ dirs,
remove #[allow(clippy::...)], extract magic numbers to
constants, refactor schedule engine private methods to
use param structs, add Default impls, clippy.toml for
persistence constructors
2026-07-12 04:02:12 +02:00

9 lines
302 B
Rust

use crate::errors::DomainResult;
// Intentionally sync: CPU-bound hashing should run on a blocking thread pool
pub trait AuthService: Send + Sync {
fn hash_password(&self, password: &str) -> DomainResult<String>;
fn verify_password(&self, password: &str, hash: &str) -> DomainResult<bool>;
}