Skip to main content

AdminSignupRequest

Package: @nauth-toolkit/client Type: Request

Request payload for admin user creation. Allows administrators to create user accounts with override capabilities including bypassing verification requirements, forcing password changes, and auto-generating secure passwords.

import { AdminSignupRequest } from '@nauth-toolkit/client';

Properties

PropertyTypeRequiredDescription
emailstringYesUser email address. Must be valid email format.
firstNamestringNoUser first name
generatePasswordbooleanNoAuto-generate secure password. Default: false. Required if password omitted.
isEmailVerifiedbooleanNoBypass email verification requirement. Default: false.
isPhoneVerifiedbooleanNoBypass phone verification requirement. Default: false.
lastNamestringNoUser last name
metadataRecord<string, unknown>NoCustom metadata object (saved to user record)
mustChangePasswordbooleanNoForce password change on first login. Default: false.
passwordstringNoUser password. Required unless generatePassword is true. Must meet backend password requirements.
phonestringNoPhone number in E.164 format (e.g., +14155551234)
usernamestringNoOptional username

Example

{
"email": "newuser@example.com",
"password": "SecurePass123!",
"firstName": "John",
"lastName": "Doe",
"phone": "+14155551234",
"isEmailVerified": true,
"isPhoneVerified": false,
"mustChangePassword": false,
"metadata": {
"source": "admin",
"department": "Engineering"
}
}

With auto-generated password:

{
"email": "newuser@example.com",
"generatePassword": true,
"isEmailVerified": true,
"mustChangePassword": true,
"firstName": "Jane",
"lastName": "Smith"
}

Used By