Closed antopiahk closed 6 months ago
I resolved this issue by completely turning off 2FA for my account. This includes also turning off the 2FA requirements for business accounts.
Hope this might help anyone else having this issue!
Now you can use Two-Factor Authentication(2FA). Just repeat login and you will be asked for a 2FA code.
proton.login(username, password)
enter 2FA code:
>? 123456
Or if you have a function that receives a 2FA code, use it:
def some_function_for_get_2fa_code() -> int:
code = 123456 # some logic
return code
proton.login(username, password, getter_2fa_code=some_function_for_get_2fa_code)
Warning: only TOTP is supported, U2F/FIDO (like USB key) is unsupported.
I am using the code from the getting started documentation.
This is the output I get in the console:
Note that I get the green message "login success".
Thanks for any help.
EDIT: I believe I found the issue. If I'm not mistaken, its due to 2FA enabled on my account.