UserManager<TUser, TKey>.VerifyTwoFactorTokenAsync Method
Verifies a two factor token with the specified provider.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function VerifyTwoFactorTokenAsync ( _
userId As TKey, _
twoFactorProvider As String, _
token As String _
) As Task(Of Boolean)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim twoFactorProvider As String
Dim token As String
Dim returnValue As Task(Of Boolean)
returnValue = instance.VerifyTwoFactorTokenAsync(userId, _
twoFactorProvider, token)
public virtual Task<bool> VerifyTwoFactorTokenAsync(
TKey userId,
string twoFactorProvider,
string token
)
public:
virtual Task<bool>^ VerifyTwoFactorTokenAsync(
TKey userId,
String^ twoFactorProvider,
String^ token
)
abstract VerifyTwoFactorTokenAsync :
userId:'TKey *
twoFactorProvider:string *
token:string -> Task<bool>
override VerifyTwoFactorTokenAsync :
userId:'TKey *
twoFactorProvider:string *
token:string -> Task<bool>
public function VerifyTwoFactorTokenAsync(
userId : TKey,
twoFactorProvider : String,
token : String
) : Task<boolean>
Parameters
- userId
Type: TKey
The user ID.
- twoFactorProvider
Type: System.String
The two factor provider.
- token
Type: System.String
The token.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.
See Also
Reference
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace