Skip to main content

VerifyPhoneDTO

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

Data transfer object for phone verification with 6-digit code.

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

Properties

PropertyTypeRequiredDescription
phonestringYesPhone number. E.164 format (e.g., +14155552671). Max 20 characters. Whitespace removed.
codestringYesVerification code. Exactly 6 digits. Numeric string. Trimmed.
challengeSessionIdnumberNoChallenge 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