Username and password authentication is not recommended and does not work with MFA/2FA enabled accounts. Use the API token if possible.