AdminLogoutAllDTO
Package: @nauth-toolkit/core
Type: DTO (Request/Response)
Data transfer objects for admin-initiated logout from all sessions for a target user.
- NestJS
- Express
- Fastify
import { AdminLogoutAllDTO, LogoutAllResponseDTO } from '@nauth-toolkit/nestjs';
import { AdminLogoutAllDTO, LogoutAllResponseDTO } from '@nauth-toolkit/core';
import { AdminLogoutAllDTO, LogoutAllResponseDTO } from '@nauth-toolkit/core';
AdminLogoutAllDTO (Request)
| Property | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | User sub (UUID v4). Trimmed, lowercased for consistency. |
forgetDevices | boolean | No | Whether to also revoke all trusted devices. Default: false. |
LogoutAllResponseDTO (Response)
| Property | Type | Description |
|---|---|---|
revokedCount | number | Number of sessions revoked. |
Example
{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"forgetDevices": true
}