remove affiliateId and employeeId

This commit is contained in:
Haiping Chen 2024-11-04 20:53:22 -06:00
parent aeaaa3cf75
commit 344741c69e
2 changed files with 5 additions and 10 deletions

View file

@ -13,8 +13,6 @@ public interface IUserIdentity
/// </summary>
string UserLanguage { get; }
string? Phone { get; }
string? AffiliateId { get; }
string? EmployeeId { get; }
string Type { get; }
string Role { get; }
string? RegionCode { get; }

View file

@ -70,18 +70,15 @@ public class UserIdentity : IUserIdentity
[JsonPropertyName("phone")]
public string? Phone => _claims?.FirstOrDefault(x => x.Type == "phone")?.Value;
[JsonPropertyName("affiliateId")]
public string? AffiliateId => _claims?.FirstOrDefault(x => x.Type == "affiliateId")?.Value;
[JsonPropertyName("employeeId")]
public string? EmployeeId => _claims?.FirstOrDefault(x => x.Type == "employeeId")?.Value;
[JsonPropertyName("type")]
public string? Type => _claims?.FirstOrDefault(x => x.Type == "type")?.Value;
[JsonPropertyName("role")]
public string? Role => _claims?.FirstOrDefault(x => x.Type == ClaimTypes.Role)?.Value;
[JsonPropertyName("regionCode")]
public string? RegionCode => _claims?.FirstOrDefault(x => x.Type == "regionCode")?.Value;
/// <summary>
/// US, CA, etc.
/// </summary>
[JsonPropertyName("region_code")]
public string? RegionCode => _claims?.FirstOrDefault(x => x.Type == "region_code")?.Value;
}