VerifyEmailWithCodeDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Request DTO for verifying email addresses using 6-digit verification codes sent via email.
- NestJS
- Express
- Fastify
import { VerifyEmailWithCodeDTO } from '@nauth-toolkit/nestjs';
import { VerifyEmailWithCodeDTO } from '@nauth-toolkit/core';
import { VerifyEmailWithCodeDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
email | string | Yes | User email address. Valid email format (RFC 5322). Max 255 characters. Trimmed and lowercased. |
code | string | Yes | Verification code. Numeric string only. Max 6 characters. Whitespace removed. |
challengeSessionId | number | No | Challenge session ID to link this verification to. Ensures codes are only valid for the session they were created for. |
Example
{
"email": "user@example.com",
"code": "123456"
}