Share via


UserManager<TUser>.VerifyTwoFactorTokenAsync Method

Definition

Verifies the specified two factor authentication token against the user.

public:
 virtual System::Threading::Tasks::Task<bool> ^ VerifyTwoFactorTokenAsync(TUser user, System::String ^ tokenProvider, System::String ^ token);
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

The user the token is supposed to be for.

tokenProvider
String

The provider which will verify the token.

token
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