Skip to content

Commit e020002

Browse files
committed
added back otp check
1 parent 6fc3b8b commit e020002

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ export class TotpMultiFactorAssertionImpl
162162
mfaPendingCredential: string
163163
): Promise<FinalizeMfaResponse> {
164164
_assert(
165-
this.enrollmentId !== undefined,
165+
this.enrollmentId !== undefined &&
166+
this.otp !== undefined,
166167
auth,
167168
AuthErrorCode.ARGUMENT_ERROR
168169
);

0 commit comments

Comments
 (0)