invoke

suspend operator fun invoke(code: String, newPassword: String): ResultS1SDK<Boolean, ErrorS1SDK>

This function should be called if the user wants to change/updates the password.

Return

ResultS1SDK<Boolean, ErrorS1SDK> for know if the request is successful only returns a Boolean that indicates if the password was changed successfully or not.

Parameters

code

String The recovery code. Get from SendRecoverPasswordCode.

newPassword

String The new set password for the user.