Xiaomi added a captcha. I’ve created a bug report for this: [miio] Cloud login fails because of added captcha · Issue #18898 · openhab/openhab-addons · GitHub]
In the mean time you can use GitHub - PiotrMachowski/Xiaomi-cloud-tokens-extractor: This tool retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices. to extract the token. Version 1.3.0 has implemented a fix.