remove affiliateId and employeeId
This commit is contained in:
parent
aeaaa3cf75
commit
344741c69e
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue