Skip to main content

ResendVerificationEmailDTO

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

Request DTO for resending verification emails. Supports identification by user sub or email address.

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

Properties

PropertyTypeRequiredDescription
substringNoUser identifier (UUID v4). Required if email not provided. Trimmed and lowercased.
emailstringNoUser email address. Required if sub not provided. Valid email format. Max 255 chars. Trimmed and lowercased.
baseUrlstringNoBase URL for verification link. Must be valid URL with http:// or https://. Max 2048 chars.
challengeSessionIdnumberNoChallenge session ID to link this verification to. Prevents old tokens from being used with new sessions.
info

At least one of sub or email must be provided.

Example

{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"baseUrl": "https://example.com"
}

Or by email:

{
"email": "user@example.com",
"baseUrl": "https://example.com"
}

Used By