GetUserSessionsDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Data transfer object for retrieving all active sessions for a user.
- NestJS
- Express
- Fastify
import { GetUserSessionsDTO } from '@nauth-toolkit/nestjs';
import { GetUserSessionsDTO } from '@nauth-toolkit/core';
import { GetUserSessionsDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | User identifier. UUID v4 format. Trimmed and lowercased. |
Example
{
"sub": "a21b654c-2746-4168-acee-c175083a65cd"
}
Security
Authentication Required
This endpoint requires authentication. For user endpoints, extract sub from authenticated user context. For admin endpoints, protect with admin guards and accept sub from route parameter.