diff --git a/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs b/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs index a8eaac5e..e289e1bc 100644 --- a/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs +++ b/src/Infrastructure/BotSharp.Core/Users/Services/UserIdentity.cs @@ -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!;