fistinc-auth 0.1.0

Paging types for Fist Inc bank
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use async_trait::async_trait;
use email_address::EmailAddress;
use fistinc_errors::ServiceResult;

use crate::domain::entity::User;

#[async_trait]
pub trait UserAuthService: Send + Sync {
    async fn login(
        &self, email: &EmailAddress, password: &str,
    ) -> ServiceResult<(User, String)>;
}