/
v3.0.11Get access

updateUserPassword

Updates the user’s password

Request parameters:

Name
DescriptionTypeValuesDefault
newPassword
New passwordstring--
password
Current passwordstring--
confirmationCode
Confirmation code sent to the user via email or smsstring--
encryptedToken
Enables the "Remember Me" functionality. If set to true, the server will include a JWE (JSON Web Encryption) token in the response to allow for persistent, secure sessionsbooleantrue / false-

Call example:

updateUserPassword({
  newPassword: 'NeWPassword',
  confirmationCode: '06a296',
  password: 'CurrentPassword'
})

Response examples:

{
  code: 0,
  rid: '0',
  data: {
    result: 0,
    auth_token: '28509DAAC14A0E554DA82B1C2B5719BB',
    jwe_token: null,
    logged_out: true,
    authentication_status: null
  }
}

Response parameters:

NameDescriptionTypeValues
result
The business logic status. 0 confirms the password was successfully updatednumber-
auth_token
A standard session tokenstring-
jwe_token
JSON Web Encryption tokenstring-
logged_out
Indicates whether the current session has been terminatedbooleantrue / false
authentication_status
Represents the current state of the user's multi-factor or tiered authenticationstring-