How to handle phoneNumber.sendOtp errors ? Only 500 is returned

Hey, I wanted to know if it's possible to handle errors that happen in the sendOtp option of the phoneNumber plugin. Currently, throwed errors are sent as 500 without proper error message.

If the user provides a malformed input, I may want to be able to return a specific error for that, not just 500.

Does someone had this problem before, or can someone help me?

Wishing you a good day 😉
Was this page helpful?