Share via


TwoFactorResponse Class

Definition

The response type for the "/manage/2fa" endpoint added by MapIdentityApi<TUser>(IEndpointRouteBuilder).

public sealed class TwoFactorResponse
type TwoFactorResponse = class
Public NotInheritable Class TwoFactorResponse
Inheritance
TwoFactorResponse

Constructors

TwoFactorResponse()

Properties

IsMachineRemembered

Whether or not the current client has been remembered by two-factor authentication cookies. This is always false for non-cookie authentication schemes.

IsTwoFactorEnabled

Whether or not two-factor login is required for the current authenticated user.

RecoveryCodes

The recovery codes to use if the SharedKey is lost. This will be omitted from the response unless ResetRecoveryCodes was set or two-factor was enabled for the first time.

RecoveryCodesLeft

The number of unused RecoveryCodes remaining.

SharedKey

The shared key generally for TOTP authenticator apps that is usually presented to the user as a QR code.

Applies to