LogoutSessionDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Data transfer object for logging out from a specific session by session ID.
- NestJS
- Express
- Fastify
import { LogoutSessionDTO } from '@nauth-toolkit/nestjs';
import { LogoutSessionDTO } from '@nauth-toolkit/core';
import { LogoutSessionDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
sessionId | string | Yes | Session ID to terminate. |
Example
{
"sessionId": "123"
}
Security
Authentication Required
This endpoint requires authentication. The user's identity is extracted from the authenticated JWT token. Session ownership is validated automatically.