SignInManager<TUser>.TwoFactorSignInAsync Method

Definition

Validates the two factor sign in code and creates and signs in the user, as an asynchronous operation.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ TwoFactorSignInAsync(System::String ^ provider, System::String ^ code, bool isPersistent, bool rememberClient);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> TwoFactorSignInAsync (string provider, string code, bool isPersistent, bool rememberClient);
abstract member TwoFactorSignInAsync : string * string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.TwoFactorSignInAsync : string * string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Public Overridable Function TwoFactorSignInAsync (provider As String, code As String, isPersistent As Boolean, rememberClient As Boolean) As Task(Of SignInResult)

Parameters

provider
String

The two factor authentication provider to validate the code against.

code
String

The two factor authentication code to validate.

isPersistent
Boolean

Flag indicating whether the sign-in cookie should persist after the browser is closed.

rememberClient
Boolean

Flag indicating whether the current browser should be remember, suppressing all further two factor authentication prompts.

Returns

The task object representing the asynchronous operation containing the for the sign-in attempt.

Applies to