diff --git a/libs/app-error/src/gotrue.rs b/libs/app-error/src/gotrue.rs index 16099556..3713ce25 100644 --- a/libs/app-error/src/gotrue.rs +++ b/libs/app-error/src/gotrue.rs @@ -85,15 +85,16 @@ impl Display for GoTrueErrorSerde { /// Used to deserialize the response from the gotrue server #[derive(Serialize, Deserialize, Debug, Error)] pub struct GotrueClientError { - pub error: String, + pub error: Option, pub error_description: Option, + pub msg: Option, } impl Display for GotrueClientError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { f.write_fmt(format_args!( - "error: {}, description: {:?}", - self.error, self.error_description + "error: {:?}, error_description: {:?}, msg: {:?}", + self.error, self.error_description, self.msg )) } }