Skip to main content

SetPasswordForSocialUserDTO

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

Request DTO for setting password for social-only user.

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

Properties

PropertyTypeRequiredDescription
substringYesUser sub (UUID v4). Trimmed and lowercased.
passwordstringYesNew password. Min 1 char, max 128 chars (actual validation in AuthService). Not trimmed.

Example

{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"password": "newpassword123"
}

Used By