https://supertokens.com/ logo
i

Impecorator

06/08/2022, 10:51 AM
Hi, i'm trying to send a custom email after an user signup. The signup works fine, but none email is sent after. As written in the documentation, i have defined the createAndSendCustomEmail function in my recipe (ThirdPartyEmailPassword). I put in it a console.log, but it doesn't appear during the signup api. In thread i put the supertokens.init code. Can you help me?
My frameworks are Nestjs for backend and Angular for frontend
This is my code:
r

rp

06/08/2022, 11:03 AM
hey! the config seems fine
how are you calling the API?
i

Impecorator

06/08/2022, 12:15 PM
i'm calling the api at auth/signup exposed by the supertokens middleware from the frontend. had i to override some api or had i call the email verify api dircetly after the signup?
r

rp

06/08/2022, 12:17 PM
the API for email vertification and reset password are not auth/signup. They are different APIs. So if you call them, then your functions should be called
i

Impecorator

06/08/2022, 12:17 PM
ok, so when i signup a new user i had to signup and then call the verify email api, right?
r

rp

06/08/2022, 12:18 PM
Yes.
i

Impecorator

06/08/2022, 12:18 PM
ty, i didn't understand that
r

rp

06/08/2022, 12:18 PM
hope it's clear now 🙂
i

Impecorator

06/08/2022, 12:18 PM
yeah 😄