@@ -62,7 +62,17 @@ import IdentifierFirst from './fragments/IdentifierFirst';
6262 * @returns {ReactElement } - React element.
6363 */
6464const 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 ;
6676
6777 const [ isComponentLoading , setIsComponentLoading ] = useState < boolean > ( true ) ;
6878 const [ alert , setAlert ] = useState < AlertType > ( ) ;
@@ -231,7 +241,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
231241 ( auth : Authenticator ) => auth . authenticatorId !== usernamePasswordAuthenticator . authenticatorId ,
232242 ) ,
233243 ) }
234- />
244+ >
245+ { basicAuthChildren }
246+ </ BasicAuth >
235247 ) ;
236248 }
237249
@@ -252,7 +264,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
252264 ( auth : Authenticator ) => auth . authenticatorId !== identifierFirstAuthenticator . authenticatorId ,
253265 ) ,
254266 ) }
255- />
267+ >
268+ { identifierFirstChildren }
269+ </ IdentifierFirst >
256270 ) ;
257271 }
258272
@@ -264,7 +278,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
264278 authenticator = { authenticators [ 0 ] }
265279 alert = { alert }
266280 handleAuthenticate = { handleAuthenticate }
267- />
281+ >
282+ { totpChildren }
283+ </ Totp >
268284 ) ;
269285 }
270286 if (
@@ -279,7 +295,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
279295 brandingProps = { brandingProps }
280296 authenticator = { authenticators [ 0 ] }
281297 handleAuthenticate = { handleAuthenticate }
282- />
298+ >
299+ { emailOtpChildren }
300+ </ EmailOtp >
283301 ) ;
284302 }
285303
@@ -295,7 +313,9 @@ const SignIn: FC<SignInProps> = (props: SignInProps): ReactElement => {
295313 brandingProps = { brandingProps }
296314 authenticator = { authenticators [ 0 ] }
297315 handleAuthenticate = { handleAuthenticate }
298- />
316+ >
317+ { smsOtpChildren }
318+ </ SmsOtp >
299319 ) ;
300320 }
301321 }
0 commit comments