Skip to main content

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

PropertyTypeRequiredDescription
codestringYesVerification code from email/SMS (6-10 digits).
identifierstringYesUser identifier (email, username, phone)
newPasswordstringYesNew password (min 8 characters)

Example

{
"identifier": "user@example.com",
"code": "123456",
"newPassword": "NewPass123!"
}

Used By