GetIpAddressResponseDTO
Package: @nauth-toolkit/core
Type: DTO (Response)
Response data transfer object for IP address from the current request context.
- NestJS
- Express
- Fastify
import { GetIpAddressResponseDTO } from '@nauth-toolkit/nestjs';
import { GetIpAddressResponseDTO } from '@nauth-toolkit/core';
import { GetIpAddressResponseDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
ipAddress | string | Yes | Client IP address. Extracted from X-Forwarded-For, CF-Connecting-IP, etc. Returns 'unknown' if called outside request context. |
Example
{
"ipAddress": "192.168.1.100"
}