Skip to content

Commit

Permalink
Merge pull request #13 from clearlysid/main
Browse files Browse the repository at this point in the history
feat: adds additional fields to UserMetadata
  • Loading branch information
Proziam authored Jan 6, 2025
2 parents 6f4ccf9 + 4002bf3 commit 7be1536
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,20 @@ pub struct AppMetadata {

#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Default)]
pub struct UserMetadata {
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub full_name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub email_verified: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub phone_verified: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sub: Option<String>,
pub picture: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub avatar_url: Option<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
Expand Down

0 comments on commit 7be1536

Please sign in to comment.