SignInAndUp Component signUp view
d
SignInAndUp Component signUp view
Hi ! How can i have by default signup with variable on SignInAndUp component ?
@rp_st hi can you help me ? thanks
r
hey!
Which recipe are you using?
if not that recipe, then there is a similar page in other recipes which you can find
d
I didn't want by default globally. If i open a modal with component SignInAndUp inside. I want to chose without adding show parameters in url. signin or signup
r
Which recipe are you using?
d
ThirdPartyEmailPassword
Copy code
<SignInAndUp show="signup" />
i want to do like this
r
yea unfortunately, there is no prop like that at the moment, but you can hack your way around it by doing something like this:
Copy code
render() {
   return (<ThirdPartyEmailPassword.SignInAndUp>
            <MyCustomThemeWrapper />
          </ThirdPartyEmailPassword.SignInAndUp>)
}

function MyCustomThemeWrapper(props) {
    React.useEffect(() => {
        props.epDispatch({ type: "setSignUp" });
    }, [])
    return <ThirdPartyEmailPassword.SignInAndUpTheme {...props} />
}
@djodjo02130 for the above to work, please update to supertokens-auth-react SDK >= 0.24.2
d
Hi @rp_st thanks again for your help, can i do same for
redirectToPath
params ?