jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 189 forks source link

How to handle login with 2fa account? #274

Open Alihassan001 opened 2 years ago

Alihassan001 commented 2 years ago

when I hit the 2fa account login it can't login successfully.

response: { "status": 400, "message": { "message": "", "two_factor_required": true, "two_factor_info": { "pk": 49376547926, "username": "xyz", "sms_two_factor_on": true, "whatsapp_two_factor_on": false, "totp_two_factor_on": false, "eligible_for_multiple_totp": false, "obfuscated_phone_number": "8888", "two_factor_identifier": "snkTPGk577DYcgXE1TWvTHFDDK2DJF45a5NLp2GrumTfJTkcv4pQ0qIzJ5Wy9JsX", "show_messenger_code_option": false, "show_new_login_screen": true, "show_trusted_device_option": false, "should_opt_in_trusted_device_option": true, "pending_trusted_notification": false, "sms_not_allowed_reason": null, "trusted_notification_polling_nonce": null, "is_trusted_device": false, "phone_verification_settings": { "max_sms_count": 2, "resend_sms_delay_sec": 60, "robocall_count_down_time_sec": 30, "robocall_after_max_sms": true } }, "phone_verification_settings": { "max_sms_count": 2, "resend_sms_delay_sec": 60, "robocall_count_down_time_sec": 30, "robocall_after_max_sms": true }, "status": "fail", "error_type": "two_factor_required" } }

rein96 commented 2 years ago

up!

MonsieurBibo commented 2 years ago

You don't. This package isn't maintained and will probably get your account banned.