RemoveDeviceDTO
Package: @nauth-toolkit/core
Type: DTO (Request/Response)
Data transfer objects for removing a single MFA device by its numeric ID.
- NestJS
- Express
- Fastify
import { RemoveDeviceDTO, RemoveDeviceResponseDTO } from '@nauth-toolkit/nestjs';
import { RemoveDeviceDTO, RemoveDeviceResponseDTO } from '@nauth-toolkit/core';
import { RemoveDeviceDTO, RemoveDeviceResponseDTO } from '@nauth-toolkit/core';
RemoveDeviceDTO (Request)
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | number | Yes | MFA device ID. Must be a positive integer (>= 1). |
RemoveDeviceResponseDTO (Response)
| Property | Type | Description |
|---|---|---|
removedDeviceId | number | The device ID that was removed |
removedMethod | MFADeviceMethod | MFA method for the removed device (e.g., 'totp', 'sms', 'email', 'passkey') |
mfaDisabled | boolean | Whether MFA was disabled (device was the last remaining device) |
Used By
- MFAService.removeDevice() - Self-service device removal
Related DTOs
- AdminRemoveDeviceDTO - Admin variant (can remove any user's device)