Is there a way to return a specific status/message...
# support-questions-legacy
a
Is there a way to return a specific status/message to the frontend when using sendVerificationEmail()? E.g. if the backend determines that the smtp server is unreachable the sendVerificationEmail() just never returns. In the backend, I can add a posthook using this doc: https://supertokens.com/docs/thirdpartyemailpassword/email-delivery/pre-post-email Using a catch block in this override, I can prevent the sendVerificationEmail() function in the frontend from hanging. However, it seems like that won't enable me to distinguish between "success" and "error" on the frontend.
3 Views