LogoutSessionResponseDTO
Package: @nauth-toolkit/core
Type: DTO (Response)
Response data transfer object confirming successful session revocation.
- NestJS
- Express
- Fastify
import { LogoutSessionResponseDTO } from '@nauth-toolkit/nestjs';
import { LogoutSessionResponseDTO } from '@nauth-toolkit/core';
import { LogoutSessionResponseDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
success | boolean | Yes | Whether the session was successfully revoked. |
wasCurrentSession | boolean | Yes | Whether the revoked session was the current session (session making the request). If true, cookies are automatically cleared. |
Example
{
"success": true,
"wasCurrentSession": false
}