Currently accounts that use 2FA security can't get login with PWB on the wiki without using other type of authentication such as BotPasswords or OAuth.
So in theory it can be possible to use action=clientlogin to perform an authentication with 2FA.
See the related task for Huggle software and the research made : T180279: Enable 2FA normal login