Share via


UserManager<TUser, TKey>.NotifyTwoFactorTokenAsync Method

Notifies a user with a token using a specific method of two-factor authentication provider.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

public virtual Task<IdentityResult> NotifyTwoFactorTokenAsync(
    TKey userId,
    string twoFactorProvider,
    string token
)

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity