Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawxy authored Sep 28, 2024
1 parent 6d8e66e commit dc6f4db
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Then, you can use the following code to validate the webhook signature:
Event webhookEvent;
try
{
wh.Verify(json, headers); // Verify doesn't return an event, just verifies the signature
wh.Verify(json, headers); // Verify doesn't return anything, just verifies the signature and throws if it's invalid
webhookEvent = JsonSerializer.Deserialize<Event>(json); // Deserialize the JSON into an Event object
}
catch (Svix.Exceptions.WebhookVerificationException ex)
Expand Down Expand Up @@ -196,15 +196,12 @@ Then, you can use the following code to validate the webhook signature:

public class ClerkUser
{
public string? Id { get; set; }
public string Id { get; set; }
public string? ExternalId { get; set; }

[JsonPropertyName("first_name")]
public string? FirstName { get; set; }

[JsonPropertyName("last_name")]
public string? LastName { get; set; }

[JsonPropertyName("email_addresses")]
public List<ClerkEmailAddress> EmailAddresses { get; set; } = new List<ClerkEmailAddress>();
}
Expand Down

0 comments on commit dc6f4db

Please sign in to comment.