resetPassword

abstract fun resetPassword(email: String?, newPassword: String?, token: String?, listener: RainbowListener<Unit, Unit>? = null)

Finalizes user password reinitialization. This method serves as the concluding step following the user password reinitialization initiated via startResetPassword.

Upon obtaining the 6-digit code via email, use this method to complete the password reset process.

Parameters

email

String The user's login.

newPassword

String The new password you want to use.

token

String The validation code received by email in the previous step.

listener

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