Auth with 2FA
milkliker opened this issue · comments
Zhao Jun commented
Hi, my accounts uses 2FA, so is that possible to login?
like use cookie or token instead of username/password.
d60 commented
You can log in by passing the TOTP secret key to the login function:
client.login(
auth_info_1='...',
auth_info_2='...',
password='...',
totp_secret='your-secret-key'
)
Alternatively, you can log in by setting cookies directly in the client:
cookies = {
...
}
client.set_cookies(cookies)