Skip to content

Commit b7e5a46

Browse files
committed
Make FamilyName nullable in GoogleOpenIdResponseDto
Changed FamilyName property from non-nullable to nullable string to accurately represent cases where the family name may be absent in the Google OpenID response.
1 parent 995c66f commit b7e5a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/EasyExtensions.AspNetCore.Authorization/Models/Dto/GoogleOpenIdResponseDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class GoogleOpenIdResponseDto
3636
/// Gets or sets the family name (surname) of the person.
3737
/// </summary>
3838
[JsonPropertyName("family_name")]
39-
public string FamilyName { get; set; } = null!;
39+
public string? FamilyName { get; set; }
4040

4141
/// <summary>
4242
/// Gets or sets the URL of the user's profile picture.

0 commit comments

Comments
 (0)