Requirements
Platform
Description
When running ig.simulate.preLoginFlow() I get an 302 error.
Code
// PRE LOGIN FLOW
ig.state.generateDevice(username);
await this.ig.simulate.preLoginFlow(); // => breaking code
// LOGIN
user = await ig.account.login(username, password);
// POST LOGIN FLOW
process.nextTick(async () => await this.ig.simulate.postLoginFlow());
Error and Output
Uncaught IgResponseError: POST /api/v1/accounts/contact_point_prefill/ - 302 Found;
at Request.handleResponseError (/home/dcts/code/liist/LiistBackend/backend/node_modules/instagram-private-api/dist/core/request.js:125:16)
at Request.send (/home/dcts/code/liist/LiistBackend/backend/node_modules/instagram-private-api/dist/core/request.js:53:28)
at async AccountRepository.contactPointPrefill (/home/dcts/code/liist/LiistBackend/backend/node_modules/instagram-private-api/dist/repositories/account.repository.js:262:26)```
Requirements
DEBUGvariable.Platform
12.18.3Description
When running
ig.simulate.preLoginFlow()I get an302error.Code
Error and Output