SignInManager<TUser>.GetTwoFactorAuthenticationUserAsync Method

Definition

Gets the TUser for the current two factor authentication login, as an asynchronous operation.

public:
 virtual System::Threading::Tasks::Task<TUser> ^ GetTwoFactorAuthenticationUserAsync();
public virtual System.Threading.Tasks.Task<TUser> GetTwoFactorAuthenticationUserAsync ();
public virtual System.Threading.Tasks.Task<TUser?> GetTwoFactorAuthenticationUserAsync ();
abstract member GetTwoFactorAuthenticationUserAsync : unit -> System.Threading.Tasks.Task<'User (requires 'User : null)>
override this.GetTwoFactorAuthenticationUserAsync : unit -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Public Overridable Function GetTwoFactorAuthenticationUserAsync () As Task(Of TUser)

Returns

Task<TUser>

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

Applies to