diff --git a/client/pages/api/otp/fire/send.ts b/client/pages/api/otp/fire/send.ts index efb4e3e..5fe36d3 100644 --- a/client/pages/api/otp/fire/send.ts +++ b/client/pages/api/otp/fire/send.ts @@ -73,7 +73,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) console.log(error.response); console.log(error.response.data) console.log(error.response.data.error) - res.status(400).json({ status: "error" }); + res.status(400).json({ status: "error", errorData: error }); } )