DisableUserResponseDTO
Package: @nauth-toolkit/core
Type: DTO (Response)
Response DTO for administrative account locking with revoked session count.
- NestJS
- Express
- Fastify
import { DisableUserResponseDTO } from '@nauth-toolkit/nestjs';
import { DisableUserResponseDTO } from '@nauth-toolkit/core';
import { DisableUserResponseDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Description |
|---|---|---|
success | boolean | Lock success flag (always true if returned) |
user | UserResponseDTO | Sanitized user object with updated lock status |
revokedSessions | number | Number of sessions revoked (forced logout) |
Example
{
"success": true,
"user": {
"sub": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"username": "johndoe",
"firstName": "John",
"lastName": "Doe",
"isEmailVerified": true,
"isPhoneVerified": false,
"isActive": false,
"isLocked": true,
"mfaEnabled": false,
"mfaExempt": false,
"socialProviders": [],
"hasPasswordHash": true,
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-15T12:30:00.000Z"
},
"revokedSessions": 3
}