f8c6a14
zhenyi
feat(totp): add lib/totp crate for TOTP-based 2FA (HMAC-SHA1 + AES-GCM secret storage)
f8c6a14
use super::types::{ResendCodeCmd, ResendCodeResp};
use super::usecase;
use crate::error::AuthError;
use crate::features::AuthService;
impl AuthService {
pub async fn resend_verification_code(
&self,
cmd: ResendCodeCmd,
expected_cid: Option<String>,
) -> Result<ResendCodeResp, AuthError> {
usecase::resend_code(cmd, self, expected_cid.as_deref()).await
}
}