changePassword

abstract fun changePassword(currentPassword: String, newPassword: String, callback: (Result<Unit>) -> Unit): Cancelable

Support function to change the user password.

This function is only valid if the application uses usernamePasswordLogin.

Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!

Since

1.10.0

Return

Cancelable It is your responsibility to cancel this operation, when no longer needed, to avoid memory leaks.

Parameters

currentPassword

the current password

newPassword

the new password

abstract fun changePassword(currentPassword: String, newPassword: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to change the user password.

This function is only valid if the application uses usernamePasswordLogin.

Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!

Since

1.10.0

Return

Cancelable In case you want to cancel before Lifecycle.State.DESTROYED.

Parameters

currentPassword

the current password

newPassword

the new password

lifecycleOwner

auto cancel the Cancelable when lifecycle state is Lifecycle.State.DESTROYED.