@@ -62,7 +62,17 @@ import IdentifierFirst from './fragments/IdentifierFirst';
62
62
* @returns {ReactElement } - React element.
63
63
*/
64
64
const SignIn : FC < SignInProps > = ( props : SignInProps ) : ReactElement => {
65
- const { brandingProps, showFooter = true , showLogo = true , showSignUp} = props ;
65
+ const {
66
+ basicAuthChildren,
67
+ brandingProps,
68
+ emailOtpChildren,
69
+ identifierFirstChildren,
70
+ showFooter = true ,
71
+ showLogo = true ,
72
+ showSignUp,
73
+ smsOtpChildren,
74
+ totpChildren,
75
+ } = props ;
66
76
67
77
const [ isComponentLoading , setIsComponentLoading ] = useState < boolean > ( true ) ;
68
78
const [ alert , setAlert ] = useState < AlertType > ( ) ;
@@ -231,7 +241,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
231
241
( auth : Authenticator ) => auth . authenticatorId !== usernamePasswordAuthenticator . authenticatorId ,
232
242
) ,
233
243
) }
234
- />
244
+ >
245
+ { basicAuthChildren }
246
+ </ BasicAuth >
235
247
) ;
236
248
}
237
249
@@ -252,7 +264,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
252
264
( auth : Authenticator ) => auth . authenticatorId !== identifierFirstAuthenticator . authenticatorId ,
253
265
) ,
254
266
) }
255
- />
267
+ >
268
+ { identifierFirstChildren }
269
+ </ IdentifierFirst >
256
270
) ;
257
271
}
258
272
@@ -264,7 +278,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
264
278
authenticator = { authenticators [ 0 ] }
265
279
alert = { alert }
266
280
handleAuthenticate = { handleAuthenticate }
267
- />
281
+ >
282
+ { totpChildren }
283
+ </ Totp >
268
284
) ;
269
285
}
270
286
if (
@@ -279,7 +295,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
279
295
brandingProps = { brandingProps }
280
296
authenticator = { authenticators [ 0 ] }
281
297
handleAuthenticate = { handleAuthenticate }
282
- />
298
+ >
299
+ { emailOtpChildren }
300
+ </ EmailOtp >
283
301
) ;
284
302
}
285
303
@@ -295,7 +313,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
295
313
brandingProps = { brandingProps }
296
314
authenticator = { authenticators [ 0 ] }
297
315
handleAuthenticate = { handleAuthenticate }
298
- />
316
+ >
317
+ { smsOtpChildren }
318
+ </ SmsOtp >
299
319
) ;
300
320
}
301
321
}
0 commit comments