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 (required): 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
  }
)

If the password reset cannot be sent through Firebase, the SDK automatically falls back to the InstaVision backend, so this call can still succeed when Firebase itself is failing.


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 (required): The email address of the user
  • oldPassword (required): The current password
  • newPassword (required): 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
  },
)

This site uses Just the Docs, a documentation theme for Jekyll.