diff --git a/Cargo.toml b/Cargo.toml index d6d9295..ecd65b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "supabase-auth" authors = ["Eric Biggs"] description = "Supabase Auth implementation following the official client libraries." readme = "README.md" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MIT OR Apache-2.0" keywords = ["supabase", "supabase-auth", "authentication", "auth"] diff --git a/src/client.rs b/src/client.rs index 1eea58e..b11af9f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -336,13 +336,7 @@ impl AuthClient { HeaderValue::from_str(&format!("Bearer {}", &bearer_token.into()))?, ); - let payload = UpdateUserPayload { - email: updated_user.email, - password: updated_user.password, - data: updated_user.data, - }; - - let body = serde_json::to_string(&payload)?; + let body = serde_json::to_string::(&updated_user)?; let response = self .client