feat(users): Create generate recovery codes API (#4708)

This commit is contained in:
Mani Chandra
2024-05-22 13:58:42 +05:30
committed by GitHub
parent ae601e8e1b
commit 8fa2cd556b
11 changed files with 135 additions and 38 deletions

View File

@ -257,3 +257,8 @@ pub struct TotpSecret {
pub struct VerifyTotpRequest {
pub totp: Option<Secret<String>>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct RecoveryCodes {
pub recovery_codes: Vec<Secret<String>>,
}