VerifyPhoneBySubDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Data transfer object for phone verification using user identifier and verification code.
- NestJS
- Express
- Fastify
import { VerifyPhoneWithCodeBySubDTO } from '@nauth-toolkit/nestjs';
import { VerifyPhoneWithCodeBySubDTO } from '@nauth-toolkit/core';
import { VerifyPhoneWithCodeBySubDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | User identifier. UUID v4 format. Trimmed and lowercased. |
code | string | Yes | Verification code. Exactly 6 digits. Numeric string. |
challengeSessionId | number | No | Challenge session ID to link this verification to. Ensures codes are only valid for the session they were created for. |
Example
{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"code": "123456"
}
Used By
- PhoneVerificationService - Uses this DTO