Skip to content

Commit 69adf36

Browse files
committed
removed unnecessary check and fixed spelling
1 parent 8290287 commit 69adf36

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/auth/src/api/authentication/mfa.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface StartPhoneMfaSignInRequest {
5454
export interface StartTotpMfaSignInRequest {
5555
mfaPendingCredential: string;
5656
mfaEnrollmentId: string;
57-
TotpSignInInfo: {
57+
totpSignInInfo: {
5858
verificationCode: string;
5959
};
6060
tenantId?: string;
@@ -67,7 +67,7 @@ export interface StartPhoneMfaSignInResponse {
6767
}
6868

6969
export interface StartTotpMfaSignInResponse {
70-
TotpSignInInfo: {
70+
totpSignInInfo: {
7171
verificationCode: string;
7272
};
7373
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ export class TotpMultiFactorAssertionImpl
162162
mfaPendingCredential: string
163163
): Promise<FinalizeMfaResponse> {
164164
_assert(
165-
typeof this.enrollmentId !== 'undefined' &&
166-
typeof this.otp !== 'undefined',
165+
this.enrollmentId !== undefined,
167166
auth,
168167
AuthErrorCode.ARGUMENT_ERROR
169168
);

0 commit comments

Comments
 (0)