From 5cce7e66ddc5de1ffa190710a7d5847851ec83e5 Mon Sep 17 00:00:00 2001 From: Jonas Soderholm Date: Thu, 11 Mar 2021 23:36:30 +0000 Subject: [PATCH] fix(amazon-cognito-identity-js): update sendMFACode callback type (#7801) * Added userConfirmationNecessary to sendMFACode --- packages/amazon-cognito-identity-js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amazon-cognito-identity-js/index.d.ts b/packages/amazon-cognito-identity-js/index.d.ts index ada0fd3ff05..0fdf1763dc5 100644 --- a/packages/amazon-cognito-identity-js/index.d.ts +++ b/packages/amazon-cognito-identity-js/index.d.ts @@ -164,7 +164,7 @@ declare module 'amazon-cognito-identity-js' { public sendMFACode( confirmationCode: string, callbacks: { - onSuccess: (session: CognitoUserSession) => void; + onSuccess: (session: CognitoUserSession, userConfirmationNecessary?: boolean) => void; onFailure: (err: any) => void; }, mfaType?: string,