Hi, quick question about sign-up customization:
We are using the EmailPassword recipe and need to do additional steps independent of supertokens, during the signup process.
Currently we are doing it by overriding the signUp method in the backend:
override: {
functions: (originalImplementation) => {
return {
...originalImplementation,
signUp: async (input) => {
// here we do our custom logic
const supertokensResponse = await originalImplementation.signUp(input);
This is working great, the only thing we are missing is how to correctly abort the signup process, if our custom logic encounters an error. As far as I can tell signup either returns a promise with status ok, or a promise with status e-mail already exists. Can I just send a rejected promise with a custom status, or is there another way to do this?
Thanks for your help!