dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.99k stars 1.14k forks source link

How to solve email Challenges? #628

Closed Thibaultfq closed 5 years ago

Thibaultfq commented 5 years ago

I've been digging into the source code for hours now but i don't understand how Challenges of type email should be resloved. I'm using the source code in the readme.md to resolve challenges but there it just states

if (challenge.type !== "phone") {
        return;
      }

Why do i get challenges of the type email and is this nowhere documented at all on how to reslove these??? Some documentation would help alot.

Thanks in advance.

dilame commented 5 years ago

Hello, @Thibaultfq . Thank you for your question. The problem actually exists. Previous version of this library was totally broken in checkpoint part, so i was forced to rewrite it quickly with backward compatibility. Current behaviour of chalenge not allows you to choose challenge type, it chooses challenge type for you basing on instagrams default choice. 2019-01-16 03 13 42

We need to allow user to choose the right challenge type, but now i don't know how to implement it with backward compatibility. If you have any idea - i will glad to hear it.