public static async Task <ClaimsIdentity> GenerateUserIdentityAsync <TUser>(this TUser user,
                                                                             UserManagerBase <TUser> manager)
     where TUser : User, new()
 => await manager.CreateIdentityAsync(user, ApplicationCookie);
 // ReSharper disable once SuggestBaseTypeForParameter
 protected SignInManagerBase(UserManagerBase <TUser> userManager, IAuthenticationManager authManager)
     : base(userManager, authManager)
 {
 }