MediaWiki:Apihelp-login-extended-description

From translatewiki.net

This action should only be used in combination with Special:BotPasswords; use for main-account login is deprecated and may fail without warning. To safely log in to the main account, use action=clientlogin.