replace abstract method
Replaces a user's password by providing their current password.
Updates the user identified by loginId
and oldPassword
with newPassword
.
newPassword
must conform to the password policy defined in the
password settings in the Descope console
Returns an AuthenticationResponse upon successful replacement and authentication.
Implementation
Future<AuthenticationResponse> replace({required String loginId, required String oldPassword, required String newPassword});