Skip to main content

GetUserAuthHistoryResponseDTO

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

Response DTO containing paginated authentication history for a user.

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

Properties

PropertyTypeRequiredDescription
dataIAuthAudit[]YesArray of audit records
totalnumberYesTotal number of records matching query
pagenumberYesCurrent page number
limitnumberYesNumber of records per page
totalPagesnumberYesTotal number of pages (Math.ceil(total / limit))

Example

{
"data": [
{
"id": 1,
"userId": 123,
"eventType": "LOGIN_SUCCESS",
"eventStatus": "SUCCESS",
"createdAt": "2025-01-15T10:30:00.000Z",
"ipAddress": "192.168.1.1"
}
],
"total": 150,
"page": 1,
"limit": 50,
"totalPages": 3
}

Used By