File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
packages/auth/src/api/authentication Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,28 @@ 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
64
export interface StartPhoneMfaSignInResponse {
56
65
phoneResponseInfo : {
57
66
sessionInfo : string ;
58
67
} ;
59
68
}
60
69
70
+ export interface StartTotpMfaSignInResponse {
71
+ TotpSignInInfo : {
72
+ verificationCode : string ;
73
+ } ;
74
+ }
75
+
61
76
export function startSignInPhoneMfa (
62
77
auth : Auth ,
63
78
request : StartPhoneMfaSignInRequest
@@ -73,6 +88,21 @@ export function startSignInPhoneMfa(
73
88
) ;
74
89
}
75
90
91
+ export function startSignInTotpMfa (
92
+ auth : Auth ,
93
+ request : StartTotpMfaSignInRequest
94
+ ) : Promise < StartTotpMfaSignInResponse > {
95
+ return _performApiRequest <
96
+ StartTotpMfaSignInRequest ,
97
+ StartTotpMfaSignInResponse
98
+ > (
99
+ auth ,
100
+ HttpMethod . POST ,
101
+ Endpoint . START_MFA_SIGN_IN ,
102
+ _addTidIfNecessary ( auth , request )
103
+ ) ;
104
+ }
105
+
76
106
export interface FinalizePhoneMfaSignInRequest {
77
107
mfaPendingCredential : string ;
78
108
phoneVerificationInfo : SignInWithPhoneNumberRequest ;
You can’t perform that action at this time.
0 commit comments