Skip to content

Commit 927a6d5

Browse files
committed
log totp vs mfa
1 parent 7c0fdb0 commit 927a6d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/identity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ function getIdToken(Username: string, Password: string, mfa?: number): Promise<C
3333
const authenticationDetails = new AuthenticationDetails(loginDetails);
3434
cognitoUser.authenticateUser(authenticationDetails, {
3535
mfaRequired: async function (challengeName: ChallengeName, challengeParameters: any) {
36-
console.log({ challengeName, challengeParameters });
36+
console.log({ callback: "mfaRequired", challengeName, challengeParameters });
3737
if (!mfa) return reject("MFA required");
3838
cognitoUser.sendMFACode(`${mfa}`, this);
3939
},
4040
totpRequired: async function (challengeName: ChallengeName, challengeParameters: any) {
41-
console.log({ challengeName, challengeParameters });
41+
console.log({ callback: "totpRequired", challengeName, challengeParameters });
4242
if (!mfa) return reject("TOTP required");
4343
cognitoUser.sendMFACode(`${mfa}`, this, "SOFTWARE_TOKEN_MFA");
4444
},

0 commit comments

Comments
 (0)