@@ -51,27 +51,13 @@ export interface StartPhoneMfaSignInRequest {
51
51
} ;
52
52
tenantId ?: string ;
53
53
}
54
- export interface StartTotpMfaSignInRequest {
55
- mfaPendingCredential : string ;
56
- mfaEnrollmentId : string ;
57
- totpSignInInfo : {
58
- verificationCode : string ;
59
- } ;
60
- tenantId ?: string ;
61
- }
62
54
63
55
export interface StartPhoneMfaSignInResponse {
64
56
phoneResponseInfo : {
65
57
sessionInfo : string ;
66
58
} ;
67
59
}
68
60
69
- export interface StartTotpMfaSignInResponse {
70
- totpSignInInfo : {
71
- verificationCode : string ;
72
- } ;
73
- }
74
-
75
61
export function startSignInPhoneMfa (
76
62
auth : Auth ,
77
63
request : StartPhoneMfaSignInRequest
@@ -87,27 +73,15 @@ export function startSignInPhoneMfa(
87
73
) ;
88
74
}
89
75
90
- export function startSignInTotpMfa (
91
- auth : Auth ,
92
- request : StartTotpMfaSignInRequest
93
- ) : Promise < StartTotpMfaSignInResponse > {
94
- return _performApiRequest <
95
- StartTotpMfaSignInRequest ,
96
- StartTotpMfaSignInResponse
97
- > (
98
- auth ,
99
- HttpMethod . POST ,
100
- Endpoint . START_MFA_SIGN_IN ,
101
- _addTidIfNecessary ( auth , request )
102
- ) ;
103
- }
104
-
105
76
export interface FinalizePhoneMfaSignInRequest {
106
77
mfaPendingCredential : string ;
107
78
phoneVerificationInfo : SignInWithPhoneNumberRequest ;
108
79
tenantId ?: string ;
109
80
}
110
81
82
+ // TOTP MFA Sign in only has a finalize phase. Phone MFA has a start phase to initiate sending an
83
+ // SMS and a finalize phase to complete sign in. With TOTP, the user already has the OTP in the
84
+ // TOTP/Authenticator app.
111
85
export interface FinalizeTotpMfaSignInRequest {
112
86
mfaPendingCredential : string ;
113
87
totpVerificationInfo : { verificationCode : string } ;
0 commit comments