SetPasswordForSocialUserDTO
Package: @nauth-toolkit/core
Type: DTO (Request)
Request DTO for setting password for social-only user.
- NestJS
- Express
- Fastify
import { SetPasswordForSocialUserDTO } from '@nauth-toolkit/nestjs';
import { SetPasswordForSocialUserDTO } from '@nauth-toolkit/core';
import { SetPasswordForSocialUserDTO } from '@nauth-toolkit/core';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
sub | string | Yes | User sub (UUID v4). Trimmed and lowercased. |
password | string | Yes | New password. Min 1 char, max 128 chars (actual validation in AuthService). Not trimmed. |
Example
{
"sub": "a21b654c-2746-4168-acee-c175083a65cd",
"password": "newpassword123"
}