Skip to main content

GetMFAStatusResponseDTO

Package: @nauth-toolkit/core Type: DTO (Response)

Response DTO for getting comprehensive MFA status for a user.

import { GetMFAStatusResponseDTO } from '@nauth-toolkit/nestjs';

Properties

PropertyTypeDescription
enabledbooleanWhether MFA is enabled.
requiredbooleanWhether MFA is required.
configuredMethodsArray<MFADeviceMethod>Array of configured device methods.
availableMethodsArray<string>Array of available method names.
hasBackupCodesbooleanWhether user has backup codes.
preferredMethodMFADeviceMethod?Preferred MFA method (if set).
mfaExemptbooleanWhether user is exempt from MFA.
mfaExemptReasonstring | nullReason for exemption (if exempt).
mfaExemptGrantedAtDate | nullDate exemption was granted (if exempt).

Example

{
"enabled": true,
"required": true,
"configuredMethods": ["totp", "sms"],
"availableMethods": ["totp", "sms", "passkey", "email"],
"hasBackupCodes": true,
"preferredMethod": "totp",
"mfaExempt": false,
"mfaExemptReason": null,
"mfaExemptGrantedAt": null
}

Used By