feat(users): Add redis in Begin and Verify TOTP and create a new API that updates TOTP (#4765)

This commit is contained in:
Mani Chandra
2024-05-29 15:39:28 +05:30
committed by GitHub
parent a6570b6a06
commit cd9c9b609c
10 changed files with 209 additions and 100 deletions

View File

@ -255,12 +255,11 @@ pub struct BeginTotpResponse {
pub struct TotpSecret {
pub secret: Secret<String>,
pub totp_url: Secret<String>,
pub recovery_codes: Vec<Secret<String>>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct VerifyTotpRequest {
pub totp: Option<Secret<String>>,
pub totp: Secret<String>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]