Skip to main content

VerifyPhoneBySubDTO

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

Data transfer object for phone verification using user identifier and verification code.

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

Properties

PropertyTypeRequiredDescription
substringYesUser identifier. UUID v4 format. Trimmed and lowercased.
codestringYesVerification code. Exactly 6 digits. Numeric string.
challengeSessionIdnumberNoChallenge 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