From f9130a3cc128a8d94fef506da577db2b3d8c1f53 Mon Sep 17 00:00:00 2001 From: Joost Farla Date: Thu, 19 Apr 2018 17:20:56 +0800 Subject: [PATCH] Dispatch failure event for pwd completion error --- packages/aws-amplify/src/Auth/Auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/aws-amplify/src/Auth/Auth.ts b/packages/aws-amplify/src/Auth/Auth.ts index 8db7a593c76..06666e619ce 100644 --- a/packages/aws-amplify/src/Auth/Auth.ts +++ b/packages/aws-amplify/src/Auth/Auth.ts @@ -561,6 +561,7 @@ export default class AuthClass { }, onFailure: (err) => { logger.debug('completeNewPassword failure', err); + dispatchAuthEvent('completeNewPassword_failure', err); reject(err); }, mfaRequired: (challengeName, challengeParam) => {