SignInManager<TUser>.TwoFactorAuthenticatorSignInAsync 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.
Validates the sign in code from an authenticator app and creates and signs in the user, as an asynchronous operation.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ TwoFactorAuthenticatorSignInAsync(System::String ^ code, bool isPersistent, bool rememberClient);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> TwoFactorAuthenticatorSignInAsync (string code, bool isPersistent, bool rememberClient);
abstract member TwoFactorAuthenticatorSignInAsync : string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.TwoFactorAuthenticatorSignInAsync : string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Public Overridable Function TwoFactorAuthenticatorSignInAsync (code As String, isPersistent As Boolean, rememberClient As Boolean) As Task(Of SignInResult)
Parameters
- 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.