Implement autorizacao in Instagram with PrivateAPI and extensions from mgp25 - https://github.com/mgp25/Instagram-API.
When you authorize a new IP - insta meets the "Challenge required", which means the need to enter a verification code by SMS or email.
The most complete analysis of problems I found in this issue - https://github.com/mgp25/Instagram-API/issues/2143.
Following this answer (https://github.com/mgp25/Instagram-API/issues/2143...
implemented the functionality and now, in the case of response with a request to enter the code - programmatically emulates another request on the phone comes SMS, I insert it (and incorrect entry code causes the error - ie at this point, all true) and I get the message about the successful authentication in the response comes pk of the user and other data.
The problem is that when you re-call the method again I get prompted to enter. Ie library does not save the login succeeded or if something still comes up wrong.
Please help in resolving the issue - a lot of time spent on the search for a solution.
Thanks in advance.