Updates the authentication user of the application. [asynchronous]
[v3.3.0] This is a built-in function added.
Arguments
| Name | Type | Description |
|---|
| param | object | User information to update |
param Details
| Property | Type | Description |
|---|
| email | string | Email |
| currentPassword | string | Current password |
| newPassword | string | New password |
Return Value
| Type | Description |
|---|
Promise<User> | Updated user information |
| Object | Property | Type | Description |
|---|
| User | userId | string | User ID (GUID) |
| email | string | Email |
| name | string | Name |
| custom_01 | string | Custom attribute 1 |
| custom_02 | string | Custom attribute 2 |
| custom_03 | string | Custom attribute 3 |
| custom_04 | string | Custom attribute 4 |
| custom_05 | string | Custom attribute 5 |
| custom_06 | string | Custom attribute 6 |
| custom_07 | string | Custom attribute 7 |
| custom_08 | string | Custom attribute 8 |
| custom_09 | string | Custom attribute 9 |
| custom_10 | string | Custom attribute 10 |
| enabled | boolean | Enabled/Disabled |
| created | string | Created date and time |
| updated | string | Updated date and time |
| status | string | User status |
Sample
await $fn.changePassword({
currentPassword: $param.currentPassword,
newPassword: $param.newPassword