Password Management

Resetting Account Password

An email will be sent to the user with a link to reset the password. The following method can be called to send the reset password email.

  • email - The email address of the user for which the password needs to be reset.
InstaVision.userServices.resetPassword(
  email = "test@example.com", // The email address of the user
  onSuccess = {
    // Email sent successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  }
)

Update User Password

Pre-requisite: The user has to be signed in to perform the following operations.

To update the user password, the following information is typically required:

  • email - The email address of the user
  • oldPassword - The current password
  • newPassword - The new password
InstaVision.userServices.updatePassword(
  email = "test@example.com", // The email address of the user
  oldPassword = "Test@123", // The current password
  newPassword = "Test@321", // The new password
  onSuccess = {
    // Password updated successfully
  },
  onError = { error ->
    // The error object contains the error code and message
  },
)