UserManager<TUser>.VerifyTwoFactorTokenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.