fix: try to fix instagram account suspension (#6434)

This commit is contained in:
oppilate 2020-12-14 11:47:06 +00:00 committed by GitHub
parent b9fe1c908e
commit 14fc4af1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ async function login(ig) {
ig.state.generateDevice(process.env.IG_USERNAME);
await ig.simulate.preLoginFlow();
await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
process.nextTick(async () => await ig.simulate.postLoginFlow());
logger.info('Instagram login success.');
} catch (error) {
logger.error('Instagram login fail: ' + error);