@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.
- package/esm2020/lib/config/auth-service.token.mjs +1 -1
- package/esm2020/lib/services/auth.service.mjs +5 -1
- package/fesm2015/annalib-anna-cognito-lib.mjs +4 -0
- package/fesm2015/annalib-anna-cognito-lib.mjs.map +1 -1
- package/fesm2020/annalib-anna-cognito-lib.mjs +4 -0
- package/fesm2020/annalib-anna-cognito-lib.mjs.map +1 -1
- package/lib/config/auth-service.token.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
});
|