The following changes were made by the replace_file_content tool to: /root/aadharbot/aadhaar_service.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -221,7 +221,13 @@ body: JSON.stringify(reqBody) }); const data = await response.json(); - if (data.status === 'Success' && data.responseData && data.responseData.status === 'success') { + console.log("verifyotp UIDAI Response:", data); + + const isSuccess = (data.status && typeof data.status === 'string' && data.status.toLowerCase() === 'success') || + (data.responseData && data.responseData.status && typeof data.responseData.status === 'string' && data.responseData.status.toLowerCase() === 'success') || + (data.responseData && (data.responseData.uidNumber || data.responseData.eidNumber)); + + if (isSuccess && data.responseData) { return res.json({ status: 'success', data: data.responseData }); } [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.