mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: try to fix instagram account suspension (#6434)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user