fix username

This commit is contained in:
Jicheng Lu 2024-07-17 13:56:33 -05:00
parent 37f2a91612
commit c376ef269d

View file

@ -20,7 +20,7 @@ public class UserIdentity : IUserIdentity
[JsonPropertyName("user_name")]
public string UserName
=> _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Name)?.Value!;
=> _claims?.FirstOrDefault(x => x.Type == "name")?.Value!;
public string Email
=> _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Email)?.Value!;