To enable TOTP while login in, the angelone account ID and MPIN has to be passed.
https://smartapi.angelbroking.com/enable-totp
Please reverify if the correct mpin was passed. Kindly share us the client code if the issue still occurs for us to analyze further
Thanks & Regards,
SmartAPI team