030e59e
zhenyi
refactor(lib): migrate storage and security tier to central lib/config (auth, cache, db, email, jwt, payment, queue, rate_limit, storage)
030e59e
use super::types::{RegisterCmd, RegisterResp};
use super::usecase;
use crate::error::AuthError;
use crate::features::AuthService;
impl AuthService {
pub async fn register(
&self,
cmd: RegisterCmd,
expected_cid: Option<String>,
) -> Result<RegisterResp, AuthError> {
usecase::register(cmd, self, expected_cid.as_deref()).await
}
}