Skip to content

Commit d8ea446

Browse files
committed
modified verification code usage in object signin
1 parent fb46378 commit d8ea446

File tree

1 file changed

+2
-3
lines changed
  • packages/auth/src/mfa/assertions

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,13 @@ export class TotpMultiFactorAssertionImpl
160160
): Promise<FinalizeMfaResponse> {
161161
_assert(
162162
typeof this.enrollmentId !== 'undefined'
163-
&& typeof this.otp !== 'undefined'
164-
&& typeof this.secret !== 'undefined',
163+
&& typeof this.otp !== 'undefined',
165164
auth,
166165
AuthErrorCode.ARGUMENT_ERROR
167166
);
168167
return finalizeSignInTotpMfa(auth, {
169168
mfaPendingCredential,
170-
verificationCode: this.secret._makeTotpVerificationInfo(this.otp).verificationCode,
169+
verificationCode: this.otp,
171170
});
172171
}
173172
}

0 commit comments

Comments
 (0)