@annalib/anna-cognito-lib 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,6 +263,8 @@ class AnnaLibAuthService {
263
263
  delete this.userAttribute.phone_number_verified;
264
264
  this.cognitoUser.completeNewPasswordChallenge(newPassword, this.userAttribute, {
265
265
  onSuccess: (result) => {
266
+ let username = this.cognitoUser.getUsername();
267
+ this.consumingProjectAuthService.onPasswordUpdate(username);
266
268
  this.router.navigate([LoginConstant.loginPageUrl]);
267
269
  },
268
270
  onFailure: (error) => {
@@ -293,6 +295,8 @@ class AnnaLibAuthService {
293
295
  this.forgotPasswordAndGlobalSignoutLoader = false;
294
296
  },
295
297
  onSuccess: () => {
298
+ let username = this.cognitoUser.getUsername();
299
+ this.consumingProjectAuthService.onPasswordUpdate(username);
296
300
  this.expiryAllExistingCurrentSession(newPassword);
297
301
  },
298
302
  });