Skip to content

Commit 3c736a5

Browse files
committed
added mfa enrollment id to finalize signin method:
1 parent ac81d84 commit 3c736a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export interface FinalizeTotpMfaSignInRequest {
113113
mfaPendingCredential: string;
114114
verificationCode: string
115115
tenantId?: string;
116+
mfaEnrollmentId?: string
116117
}
117118

118119
export interface FinalizePhoneMfaSignInResponse extends FinalizeMfaResponse {}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class TotpMultiFactorAssertionImpl
156156
/** @internal */
157157
_finalizeSignIn(
158158
auth: AuthInternal,
159-
mfaPendingCredential: string
159+
mfaPendingCredential: string,
160160
): Promise<FinalizeMfaResponse> {
161161
_assert(
162162
typeof this.enrollmentId !== 'undefined'
@@ -167,6 +167,7 @@ export class TotpMultiFactorAssertionImpl
167167
return finalizeSignInTotpMfa(auth, {
168168
mfaPendingCredential,
169169
verificationCode: this.otp,
170+
mfaEnrollmentId: this.enrollmentId
170171
});
171172
}
172173
}

0 commit comments

Comments
 (0)