File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export interface FinalizePhoneMfaSignInRequest {
81
81
82
82
export interface FinalizeTotpMfaSignInRequest {
83
83
mfaPendingCredential : string ;
84
- totpVerificationInfo : TotpVerificationInfo ;
84
+ verificationCode : string
85
85
tenantId ?: string ;
86
86
}
87
87
Original file line number Diff line number Diff line change @@ -159,13 +159,15 @@ export class TotpMultiFactorAssertionImpl
159
159
mfaPendingCredential : string
160
160
) : Promise < FinalizeMfaResponse > {
161
161
_assert (
162
- typeof this . secret !== 'undefined' ,
162
+ typeof this . enrollmentId !== 'undefined'
163
+ && typeof this . otp !== 'undefined'
164
+ && typeof this . secret !== 'undefined' ,
163
165
auth ,
164
166
AuthErrorCode . ARGUMENT_ERROR
165
167
) ;
166
168
return finalizeSignInTotpMfa ( auth , {
167
169
mfaPendingCredential,
168
- totpVerificationInfo : this . secret . _makeTotpVerificationInfo ( this . otp )
170
+ verificationCode : this . secret . _makeTotpVerificationInfo ( this . otp ) . verificationCode ,
169
171
} ) ;
170
172
}
171
173
}
You can’t perform that action at this time.
0 commit comments