LoginDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Data transfer object for user login requests. Supports email, username, or phone number as identifier.
- NestJS
- Express
- Fastify
import { LoginDTO } from '@nauth-toolkit/nestjs';
import { LoginDTO } from '@nauth-toolkit/core';
import { LoginDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
deviceName | string | No | Human-readable device name (e.g., "John's iPhone"). Max 255 characters. |
deviceType | 'mobile' | 'desktop' | 'tablet' | No | Device type for session categorization. Must be mobile, desktop, or tablet. Lowercased. |
identifier | string | Yes | Email, username, or phone number. Auto-detects type. 1-255 characters. |
password | string | Yes | User password. 1-128 characters. Not trimmed. |
recaptchaToken | string | No | reCAPTCHA token from client. Required when reCAPTCHA is enforced. See reCAPTCHA Guide. |
Example
{
"identifier": "user@example.com",
"password": "SecurePass123!",
"deviceName": "John's iPhone 15",
"deviceType": "mobile",
"recaptchaToken": "03AGdBq25..."
}