Skip to main content

RemoveDeviceDTO

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

Data transfer objects for removing a single MFA device by its numeric ID.

import { RemoveDeviceDTO, RemoveDeviceResponseDTO } from '@nauth-toolkit/nestjs';

RemoveDeviceDTO (Request)​

PropertyTypeRequiredDescription
deviceIdnumberYesMFA device ID. Must be a positive integer (>= 1).

RemoveDeviceResponseDTO (Response)​

PropertyTypeDescription
removedDeviceIdnumberThe device ID that was removed
removedMethodMFADeviceMethodMFA method for the removed device (e.g., 'totp', 'sms', 'email', 'passkey')
mfaDisabledbooleanWhether MFA was disabled (device was the last remaining device)

Used By​