// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using System.Threading.Tasks; namespace Microsoft.AspNet.Identity { /// /// Stores whether two factor is enabled for a user /// /// public interface IUserTwoFactorStore : IUserStore where TUser : class { /// /// Sets whether two factor is enabled for the user /// /// /// /// /// Task SetTwoFactorEnabledAsync(TUser user, bool enabled, CancellationToken cancellationToken); /// /// Returns whether two factor is enabled for the user /// /// /// /// Task GetTwoFactorEnabledAsync(TUser user, CancellationToken cancellationToken); } }