AdminRevokeSessionDTO
Package: @nauth-toolkit/core
Type: DTO (Request/Response)
Data transfer objects for admin-initiated revocation of a specific user session.
- NestJS
- Express
- Fastify
import { AdminRevokeSessionDTO, LogoutSessionResponseDTO } from '@nauth-toolkit/nestjs';
import { AdminRevokeSessionDTO, LogoutSessionResponseDTO } from '@nauth-toolkit/core';
import { AdminRevokeSessionDTO, LogoutSessionResponseDTO } from '@nauth-toolkit/core';
AdminRevokeSessionDTO (Request)
| Property | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | User sub (UUID v4). Trimmed, lowercased for consistency. |
sessionId | string | Yes | Session ID to revoke. |
LogoutSessionResponseDTO (Response)
| Property | Type | Description |
|---|---|---|
success | boolean | Whether the session was successfully revoked. |
wasCurrentSession | boolean | Whether the revoked session was the current session. |
Example
{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"sessionId": "session-uuid-123"
}