Returning Errors From OTP
Looked through docs and couldn’t find how to return error details for otp. sendOTP doesn’t allow a return and throwing an error just gives the client 500 code with status text “”. Use case here is managing twilio verify errors and want to pass those onto the client. I’d be fine mapping their codes to better auth codes just don’t see how to to that, thanks. Happy to share code as well if it helps explain.
1 Reply
In addition if there is a way to attatch metadata to a send otp (twilio verifys attempt sid) to stay compliant with them for then reporting in the callbackOnVerification what the status was