https://supertokens.com/ logo
#support-questions
Title
# support-questions
f

funk101

05/12/2022, 4:31 AM
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

rp

05/12/2022, 4:31 AM
It will
All of the other logic will still get called
f

funk101

05/12/2022, 4:32 AM
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

rp

05/12/2022, 4:49 AM
Yes. Correct. It’s all frontend
And it needs to be wrapper in NoSSR as well
f

funk101

05/12/2022, 4:52 AM
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

rp

05/12/2022, 4:56 AM
It can be on any page u like.
But make sure you don’t use the emailpasswordauth wrapper along with signinup component
f

funk101

05/12/2022, 5:03 AM
hmm, that's what I had.
ok, got it
7 Views