diff --git a/libs/gotrue-entity/src/dto.rs b/libs/gotrue-entity/src/dto.rs index 707ff264..9274f35d 100644 --- a/libs/gotrue-entity/src/dto.rs +++ b/libs/gotrue-entity/src/dto.rs @@ -105,7 +105,7 @@ pub struct GoTrueSettings { pub mailer_autoconfirm: bool, pub phone_autoconfirm: bool, pub sms_provider: String, - pub mfa_enabled: bool, + pub mfa_enabled: Option, // later version have this field removed pub saml_enabled: bool, } diff --git a/libs/gotrue/src/api.rs b/libs/gotrue/src/api.rs index d7d487a5..cfd77fbb 100644 --- a/libs/gotrue/src/api.rs +++ b/libs/gotrue/src/api.rs @@ -48,9 +48,7 @@ impl Client { pub async fn settings(&self) -> Result { let url: String = format!("{}/settings", self.base_url); let resp = self.client.get(&url).send().await?; - let settings: GoTrueSettings = from_response(resp) - .await - .context(format!("calling {} failed", url))?; + let settings: GoTrueSettings = from_response(resp).await?; Ok(settings) }