Share via

IUserTwoFactorTokenProvider<TUser> Interface


Provides an abstraction for two-factor token generators.

generic <typename TUser>
 where TUser : classpublic interface class IUserTwoFactorTokenProvider
public interface IUserTwoFactorTokenProvider<TUser> where TUser : class
type IUserTwoFactorTokenProvider<'User (requires 'User : null)> = interface
Public Interface IUserTwoFactorTokenProvider(Of TUser)

Type Parameters


The type encapsulating a user.



CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser)

Returns a flag indicating whether the token provider can generate a token suitable for two-factor authentication token for the specified user.

GenerateAsync(String, UserManager<TUser>, TUser)

Generates a token for the specified user and purpose.

ValidateAsync(String, String, UserManager<TUser>, TUser)

Returns a flag indicating whether the specified token is valid for the given user and purpose.

Applies to