Skip to main content

SendVerificationSMSDTO

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

Request DTO for sending verification SMS with codes.

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

Properties

PropertyTypeRequiredDescription
substringYesUser identifier (UUID v4). Trimmed and lowercased.
skipAlreadyVerifiedCheckbooleanNoSkip "already verified" check. Used for MFA contexts where codes needed even if phone verified.
challengeSessionIdnumberNoChallenge session ID to link this verification to. Prevents old tokens from being used with new sessions.

Example

{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"skipAlreadyVerifiedCheck": false,
"challengeSessionId": 42
}

Used By