Skip to content

Commit

Permalink
fix: add pre-login flow for instagram auth
Browse files Browse the repository at this point in the history
  • Loading branch information
davodm committed Oct 19, 2023
1 parent 5126d1e commit f624c67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auth/instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ async function login() {
//Start Logging in via bluebird to catch the checkpoint
bluebird
.try(async () => {
// Simulate pre-login flow
await ig.simulate.preLoginFlow();
await new Promise((resolve) => setTimeout(resolve, 3000));
// Login
const user = await ig.account.login(
process.env.IG_USERNAME,
Expand Down

0 comments on commit f624c67

Please sign in to comment.