replace abstract method

Future<AuthenticationResponse> replace({
  1. required String loginId,
  2. required String oldPassword,
  3. required String newPassword,
})

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});