but I have a lot of logic build on what we've been...
# support-questions
f
but I have a lot of logic build on what we've been discussing, adding custom fields, and an "onBlur" event, etc. It seems embedding will not include all that code by just calling , will it?
r
It will
All of the other logic will still get called
f
ok then
Steps 1 and 3, does that logic go in frontendConfig() or backendConfig()?
I think I got it, but I'm getting this error:
Copy code
Server Error
Error: No instance of EmailPassword found. Make sure to call the EmailPassword.init method.See https://supertokens.io/docs/emailpassword/quick-setup/frontend
If you are trying to use this method doing server-side-rendering, please make sure you move this method inside a componentDidMount method or useEffect hook.
I guess the newly created signinsignup component needs to be wrapped in a ...NoSSR ?
r
Yes. Correct. It’s all frontend
And it needs to be wrapper in NoSSR as well
f
ok, fixed the error but I have this
Copy code
getRedirectionURL: async (context) => {
          if (context.action === "SIGN_IN_AND_UP") {
            return "/signin-signup";
          }
        },
and my url looks like this, prolly not right
/signin-signup?redirectToPath=%2Fsignin-signup
so it's stuck in a loop
should my custom signin component be in /auth?
r
It can be on any page u like.
But make sure you don’t use the emailpasswordauth wrapper along with signinup component
f
hmm, that's what I had.
ok, got it
7 Views