Skip to main content

GetUserAgentResponseDTO

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

Response data transfer object for user agent string from the current request context.

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

Properties

PropertyTypeRequiredDescription
userAgentstringYesUser agent string from the request. Returns 'unknown' if called outside request context.

Example

{
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
}

Used By