feat: include response body for create_user_authentication_method (#9653)

This commit is contained in:
peter007-cmd
2025-10-15 16:59:19 +05:30
committed by GitHub
parent 6394c892cd
commit bebffa97ff
3 changed files with 43 additions and 21 deletions

View File

@ -353,6 +353,17 @@ pub struct CreateUserAuthenticationMethodRequest {
pub email_domain: Option<String>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct CreateUserAuthenticationMethodResponse {
pub id: String,
pub auth_id: String,
pub owner_id: String,
pub owner_type: common_enums::Owner,
pub auth_type: common_enums::UserAuthType,
pub email_domain: Option<String>,
pub allow_signup: bool,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
#[serde(rename_all = "snake_case")]
pub enum UpdateUserAuthenticationMethodRequest {