UserManager<TUser>.VerifyTwoFactorTokenAsync(TUser, String, String) UserManager<TUser>.VerifyTwoFactorTokenAsync(TUser, String, String) UserManager<TUser>.VerifyTwoFactorTokenAsync(TUser, String, String) Method

Definition

Verifies the specified two factor authentication token against the user.

public virtual System.Threading.Tasks.Task<bool> VerifyTwoFactorTokenAsync (TUser user, string tokenProvider, string token);
abstract member VerifyTwoFactorTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
override this.VerifyTwoFactorTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
Public Overridable Function VerifyTwoFactorTokenAsync (user As TUser, tokenProvider As String, token As String) As Task(Of Boolean)

Parameters

user
TUser TUser TUser

The user the token is supposed to be for.

tokenProvider
String String String

The provider which will verify the token.

token
String String String

The token to verify.

Returns

The Task that represents result of the asynchronous operation, true if the token is valid, otherwise false.

Applies to