VerifyPhoneDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Data transfer object for phone verification with 6-digit code.
- NestJS
- Express
- Fastify
import { VerifyPhoneWithCodeDTO } from '@nauth-toolkit/nestjs';
import { VerifyPhoneWithCodeDTO } from '@nauth-toolkit/core';
import { VerifyPhoneWithCodeDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
phone | string | Yes | Phone number. E.164 format (e.g., +14155552671). Max 20 characters. Whitespace removed. |
code | string | Yes | Verification code. Exactly 6 digits. Numeric string. Trimmed. |
challengeSessionId | number | No | Challenge session ID to link this verification to. Ensures codes are only valid for the session they were created for. |
Example
{
"phone": "+14155552671",
"code": "123456"
}
Used By
- PhoneVerificationService - Uses this DTO