mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(users): add endpoint to check 2fa status (#4810)
This commit is contained in:
@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user