changeUserPassword

abstract fun changeUserPassword(oldPassword: String, newPassword: String, listener: RainbowListener<Unit, UserRepository.ChangePasswordError>? = null)

Changes the password of the logged-in user.

This API does not work if no user is currently logged in.

Parameters

oldPassword

String The current password.

newPassword

String The new password.

listener

RainbowListener (optional) callback invoked upon completion of the operation. Set to null if not required.