From 4002bf3425d9309d439926125afa3a6c2a00fee9 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Wed, 1 Jan 2025 15:26:10 +0530 Subject: [PATCH] feat: adds additional fields to UserMetadata --- src/models.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/models.rs b/src/models.rs index 9a48390..47e0414 100644 --- a/src/models.rs +++ b/src/models.rs @@ -78,6 +78,10 @@ pub struct AppMetadata { #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Default)] pub struct UserMetadata { + #[serde(skip_serializing_if = "Option::is_none")] + pub name: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub full_name: Option, #[serde(skip_serializing_if = "Option::is_none")] pub email: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -85,7 +89,9 @@ pub struct UserMetadata { #[serde(skip_serializing_if = "Option::is_none")] pub phone_verified: Option, #[serde(skip_serializing_if = "Option::is_none")] - pub sub: Option, + pub picture: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub avatar_url: Option, } #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]