fix: try to fix instagram account suspension (#6434)
This commit is contained in:
parent
b9fe1c908e
commit
14fc4af1ef
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue