ResetPasswordWithCodeRequest
Package: @nauth-toolkit/client
Type: Request
Request payload for resetting password with a verification code. Generic method that works for both admin-initiated (adminResetPassword) and user-initiated (forgotPassword) password resets.
import { ResetPasswordWithCodeRequest } from '@nauth-toolkit/client';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Verification code from email/SMS (6-10 digits). |
identifier | string | Yes | User identifier (email, username, phone) |
newPassword | string | Yes | New password (min 8 characters) |
Example
{
"identifier": "user@example.com",
"code": "123456",
"newPassword": "NewPass123!"
}
Used By
- NAuthClient.resetPasswordWithCode() - Internal request payload