Hi All, I have a question about the Multifactor ...
# support-questions-legacy
r
Hi All, I have a question about the Multifactor Auth and the linked project in github. https://supertokens.com/docs/mfa/introduction https://github.com/supertokens/supertokens-auth-react/tree/master/examples/with-thirdpartyemailpassword-2fa-passwordless Everything in the project is working great (I'm using react w/ nextjs.) the only issue is my OTP is being sent twice. I tracked it down and indeed the CustomSignInUpTheme component brought over from the github project is mounting twice (https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-thirdpartyemailpassword-2fa-passwordless/src/SecondFactor/index.tsx) That led me to the SecondFactor component which only renders once but contains this block which I believe to be causing the additional render.
Copy code
<PasswordlessPreBuiltUI.SignInUp redirectOnSessionExists={false}>
   {
      // @ts-ignore We ignore the error about missing props, since they'll be set by the feature component
      <CustomSignInUpTheme />
   }
 </PasswordlessPreBuiltUI.SignInUp>
Has anyone encountered this and does anyone have any insight into what is happening inside PasswordlessPreBuiltUi that is creating 2 renders? Thank you in advance for any thoughts - RR