Skip to main content

SetPasswordForSocialUserDTO

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

Request DTO for setting a first password on a social-only account.

The account acted on is always the caller's own, resolved from the authenticated request context, so no user identifier is sent.

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

Properties​

PropertyTypeRequiredDescription
passwordstringYesNew password. Min 1 char, max 128 chars (actual validation in AuthService). Not trimmed.

Example​

{
"password": "newpassword123"
}

Used By​