feat(users): add endpoint to check 2fa status (#4810)

This commit is contained in:
Apoorv Dixit
2024-05-29 19:00:08 +05:30
committed by GitHub
parent e410eba6ed
commit 0f7f3d9e74
7 changed files with 45 additions and 3 deletions

View File

@ -235,6 +235,12 @@ pub struct TokenResponse {
pub token_type: TokenPurpose,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct TwoFactorAuthStatusResponse {
pub totp: bool,
pub recovery_code: bool,
}
#[derive(Debug, serde::Serialize)]
#[serde(untagged)]
pub enum TokenOrPayloadResponse<T> {