EnableUserResponseDTO
Package: @nauth-toolkit/core
Type: DTO (Response)
Response DTO for administrative account unlocking with updated user status.
- NestJS
- Express
- Fastify
import { EnableUserResponseDTO } from '@nauth-toolkit/nestjs';
import { EnableUserResponseDTO } from '@nauth-toolkit/core';
import { EnableUserResponseDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Description |
|---|---|---|
success | boolean | Unlock success flag (always true if returned) |
user | UserResponseDTO | Sanitized user object with updated lock status |
Example
{
"success": true,
"user": {
"sub": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"username": "johndoe",
"isEmailVerified": true,
"isPhoneVerified": false,
"isActive": true,
"isLocked": false,
"mfaEnabled": false,
"hasSocialAuth": false,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T12:30:00.000Z"
}
}