Skip to content

Commit

Permalink
fix: prelogin flow happens if it sets on .env
Browse files Browse the repository at this point in the history
  • Loading branch information
davodm committed Oct 21, 2023
1 parent f624c67 commit 2544724
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ async function login() {
}
}
// Simulate pre-login flow
await ig.simulate.preLoginFlow();
if(getENV("IG_PRELOGIN",'false') === 'true'){
await ig.simulate.preLoginFlow();
}
// Login
user = await ig.account.login(
process.env.IG_USERNAME,
Expand Down

0 comments on commit 2544724

Please sign in to comment.