decePubClient/Models/AuthData.cs
Eugenio Chiodo ba4a4b14c8 Saving
2022-02-14 01:51:37 +01:00

23 lines
530 B
C#

namespace decePubClient.Models
{
public class AuthData
{
public string Token { get; set; }
public long? TokenExpiration { get; set; }
public string CurrentLanguageCode { get; set; } = "en";
public User User { get; set; }
//public bool UserHasPolicies(params string[] policies)
//{
// var hasAllPolicies = true;
// foreach (var policy in policies)
// if (!(User?.Policies?.Any(p => p == policy) ?? false))
// {
// hasAllPolicies = false;
// break;
// }
// return hasAllPolicies;
//}
}
}