https://supertokens.com/ logo
r

Rob Schilder

06/06/2022, 11:00 AM
Hi guys, noob question: I am trying to override the
emailPasswordSignUpPOST
api
on the backend. How to see if it's reaching the function? My
console.log('test')
are not appearing, the ones in the
backendConfig
. My sign up is succesful in the supertokens dashboard. Is there some kind of logging that I can see what happens after the
emailPasswordSignUpPOST
?
r

rp

06/06/2022, 11:05 AM
hey @Rob Schilder
r

Rob Schilder

06/06/2022, 11:06 AM
Hey
r

rp

06/06/2022, 11:06 AM
there is no logging on the backend other than you adding a console log (like you have done). If your console log is not being called, then most likely, you have added the override in the wrong place. Can I see your code?
r

Rob Schilder

06/06/2022, 11:06 AM
You are right, I must have forgot something.
r

rp

06/06/2022, 11:09 AM
hmm. but none of the console logs are getting printed out?
r

Rob Schilder

06/06/2022, 11:09 AM
nope
r

rp

06/06/2022, 11:09 AM
and you are using TS or JS?
r

Rob Schilder

06/06/2022, 11:10 AM
TS
r

rp

06/06/2022, 11:10 AM
most likely a caching issue then
can you make sure you have rebuilt everything?
r

Rob Schilder

06/06/2022, 11:10 AM
I am using turborepo
you mean I should build everything again
it could be the case, let me do it
r

rp

06/06/2022, 11:11 AM
maybe print something out where you know that the code is being executed for sure and see if that gets printed out
r

Rob Schilder

06/06/2022, 11:13 AM
omg you were right @rp. how are you so smart
thanks
r

rp

06/06/2022, 11:13 AM
you're welcome 🙂
r

Rob Schilder

06/06/2022, 11:14 AM
could I ask you one question regarding logic? Not an issue perse. Or do I need to make a new thread?
r

rp

06/06/2022, 11:14 AM
If it's totally unrelated to this, then make another thread please.
r

Rob Schilder

06/06/2022, 11:14 AM
Okay