IafUser
create#
Creates a new User class object.
| Parameter | Required | Type | Description |
|---|---|---|---|
| userData | Yes | User | Pass a User object that contains the properties you want to define the user. |
| ctx | No | Ctx | ctx - Context, such as namespaces and authentication token information. |
Returns
User - The created User object
Examples
// Create a new userconst userData = { _firstname: "First Name", _lastname: "Last Name", _email: "[email protected]", _password: "Test@123"};
const user = await IafUser.create(userData, ctx);