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

 

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

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 Overridable Function VerifyTwoFactorTokenAsync (
    userId As TKey,
    twoFactorProvider As String,
    token As String
) As Task(Of Boolean)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

Type: System.Threading.Tasks.Task<Boolean>

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top