Skip to main content

LogoutSessionResponseDTO

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

Response data transfer object confirming successful session revocation.

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

Properties

PropertyTypeRequiredDescription
successbooleanYesWhether the session was successfully revoked.
wasCurrentSessionbooleanYesWhether the revoked session was the current session (session making the request). If true, cookies are automatically cleared.

Example

{
"success": true,
"wasCurrentSession": false
}

Used By