Now I cant login, every time I get an error
IgCheckpointError: POST /api/v1/accounts/login/ - 400 Bad Request; challenge_required
But what I really need to do? With every tries Instagram send me message with question does it really I am? I confirm that, but already have error in terminal. How I can resolve this? How I must use session? Old version of API worked perfect, but now am stuck
You need to init the challenge, then solve it according to its type.
Look for client.challenge.state() and further depending on challenge type
You can check this example
https://github.com/dilame/instagram-private-api/blob/master/examples/checkpoint.example.ts
@ricky155030 @lomegg @Nerixyz Could you explain why and under what circumstances this challenge occurs? I experience this whenever I attempt to sign in using this package but never when signing in manually via browser.
Additionally, is there a way to configure the IgAPIClient such that the challenge doesn't occur?
Most helpful comment
You can check this example
https://github.com/dilame/instagram-private-api/blob/master/examples/checkpoint.example.ts