InstaCLI icon indicating copy to clipboard operation
InstaCLI copied to clipboard

Support 2FA

Open xmha97 opened this issue 2 years ago • 5 comments

I can't log in to my account. Please support 2FA.

[OkHttp https://i.instagram.com/...] INFO com.github.instagram4j.instagram4j.IGClient - Response for https://i.instagram.com/api/v1/accounts/login/ with body (truncated) : {"message":"","two_factor_required":true,"two_factor_info":{"pk":33471701853,"username":"xmha97","sm
Login failed:
Press enter to continue...

Thanks.

xmha97 avatar Feb 06 '23 23:02 xmha97

cc: @yamin8000

xmha97 avatar Feb 06 '23 23:02 xmha97

cc: @yamin8000

instagram4j already supports 2fa, I just have to add the necessary code.

yamin8000 avatar Feb 07 '23 01:02 yamin8000

cc: @yamin8000

instagram4j already supports 2fa, I just have to add the necessary code.

Thanks for adding.

xmha97 avatar Feb 07 '23 01:02 xmha97

cc: @yamin8000

instagram4j already supports 2fa, I just have to add the necessary code.

Thanks for adding.

9a72c43898efecc27bf36829f9a3e7810ba8f0ba Theoretically, it should be fixed now. Unfortunately, there's something wrong with my browser (some unknown CSRF token error) so I cannot test this. Maybe you could build the project with the new commit and try it, however, I'm going to create a JAR version anyway.

yamin8000 avatar Feb 07 '23 02:02 yamin8000

سلام، ممنون از بررسی‌تون. من هم نمی‌تونم توی مرورگر به حسابم لاگین کنم. مشکل از مرورگر نیست، حتی اگه با مرورگرهای مختلف هم تست کنید باز هم همین خطا رو میده. فکرمی‌کنم بخاطر فیلترشکن است.

xmha97 avatar Feb 07 '23 07:02 xmha97