Skip to main content

ChangePasswordDTO

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

Data transfer object for changing user password. Requires current password verification.

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

Properties

PropertyTypeRequiredDescription
oldPasswordstringYesCurrent password for verification. Not trimmed.
newPasswordstringYesNew password. 8-128 characters. Not trimmed.

Example

{
"oldPassword": "CurrentPass123!",
"newPassword": "NewSecurePass456!"
}

Used By