Skip to content

Commit 0ced09c

Browse files
committed
removing some debug statements
1 parent e91db4a commit 0ced09c

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

packages/auth/demo/src/index.js

-7
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,6 @@ function handleMultiFactorSignIn(resolver) {
10871087
function showMultiFactors($listGroup, multiFactorInfo, onClick, onDelete) {
10881088
// Append entry to list.
10891089
$listGroup.empty();
1090-
console.log("showMultiFactors");
10911090
$.each(multiFactorInfo, i => {
10921091
// Append entry to list.
10931092
const info = multiFactorInfo[i];
@@ -1135,7 +1134,6 @@ function showMultiFactors($listGroup, multiFactorInfo, onClick, onDelete) {
11351134
function onSelectMultiFactorHint(index) {
11361135
// Hide all forms for handling each type of second factors.
11371136
// Currently only phone is supported.
1138-
console.log("onSelectMultiFactorHint called", multiFactorErrorResolver.hints[index].factorId);
11391137
$('#multi-factor-phone').addClass('hidden');
11401138
$('#multi-factor-totp').addClass('hidden');
11411139
if (
@@ -1165,7 +1163,6 @@ function onSelectMultiFactorHint(index) {
11651163
$('#multi-factor-totp').removeClass('hidden');
11661164
// Clear all input.
11671165
$('#multi-factor-totp-sign-in-verification-code').val('');
1168-
console.log("code",$('#multi-factor-totp-sign-in-verification-code').val());
11691166
}
11701167
else {
11711168
// 2nd factor not found or not supported by app.
@@ -1228,10 +1225,7 @@ function onFinalizeSignInWithPhoneMultiFactor(event) {
12281225
function onFinalizeSignInWithTotpMultiFactor(event){
12291226
event.preventDefault();
12301227
// Make sure a second factor is selected.
1231-
console.log(selectedMultiFactorHint, multiFactorErrorResolver);
12321228
const otp = $('#multi-factor-totp-sign-in-verification-code').val();
1233-
console.log("otp ",otp);
1234-
console.log($('#multiFactorModal :input'));
12351229
if (!otp || !selectedMultiFactorHint || !multiFactorErrorResolver) {
12361230
return;
12371231
}
@@ -1372,7 +1366,6 @@ function signInWithPopupRedirect(provider) {
13721366
customParameters[key] = value;
13731367
}
13741368
});
1375-
console.log('customParameters: ', customParameters);
13761369
// For older jscore versions that do not support this.
13771370
if (provider.setCustomParameters) {
13781371
// Set custom parameters on current provider.

packages/auth/src/mfa/assertions/totp.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,13 @@ export class TotpMultiFactorAssertionImpl
158158
auth: AuthInternal,
159159
mfaPendingCredential: string,
160160
): Promise<FinalizeMfaResponse> {
161-
162-
console.log("Secret: ", this.secret);
163-
console.log("_finalizeSingnIn called with ", this.enrollmentId, " ", this.otp);
164161
_assert(
165162
typeof this.enrollmentId !== 'undefined'
166163
&& typeof this.otp !== 'undefined',
167164
auth,
168165
AuthErrorCode.ARGUMENT_ERROR
169166
);
170-
let totpVerificationInfo = {'verificationCode': this.otp};
171-
167+
const totpVerificationInfo = {'verificationCode': this.otp};
172168
return finalizeSignInTotpMfa(auth, {
173169
mfaPendingCredential,
174170
totpVerificationInfo: totpVerificationInfo,

0 commit comments

Comments
 (0)