SendVerificationEmailDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Request DTO for sending verification emails with codes and optional verification links.
- NestJS
- Express
- Fastify
import { SendVerificationEmailDTO } from '@nauth-toolkit/nestjs';
import { SendVerificationEmailDTO } from '@nauth-toolkit/core';
import { SendVerificationEmailDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | User identifier (UUID v4). Trimmed and lowercased. |
baseUrl | string | No | Base URL for verification link. Must be valid URL with http:// or https://. Max 2048 chars. |
skipAlreadyVerifiedCheck | boolean | No | Skip "already verified" check. Used for MFA contexts where codes needed even if email verified. |
challengeSessionId | number | No | Challenge session ID to link this verification to. Prevents old tokens from being used with new sessions. |
challengeSessionToken | string | No | Challenge session token (UUID v4). Included in verification link for cross-browser verification. |
Example
{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"baseUrl": "https://example.com",
"skipAlreadyVerifiedCheck": false,
"challengeSessionId": 42,
"challengeSessionToken": "b32c765d-3857-5279-bdff-d286194b76de"
}