Ejemplo n.º 1
0
 /// <summary>
 ///     Returns the remaining seconds on an auth ticket for the user based on the claim applied to the user durnig
 ///     authentication
 /// </summary>
 /// <param name="user"></param>
 /// <returns></returns>
 public static double GetRemainingAuthSeconds(this IPrincipal user) =>
 user.GetRemainingAuthSeconds(DateTimeOffset.UtcNow);