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;
		//}
	}
}
