Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login by email #1748

Open
3 tasks done
m1adow opened this issue Dec 26, 2023 · 3 comments
Open
3 tasks done

Login by email #1748

m1adow opened this issue Dec 26, 2023 · 3 comments
Labels
question unconfirmed This issue hasn't been read/confirmed/accepted by an admin

Comments

@m1adow
Copy link

m1adow commented Dec 26, 2023

Form

Question

Hi! How to login in account by email? I am unable to do it I am getting 400 every time, but with the same credentials I can login using web and phone apps

Code

import { IgApiClient } from 'instagram-private-api';

const email = '[email protected]';
const ig = new IgApiClient();
ig.state.generateDevice(email);
(async () => {
  await ig.simulate.preLoginFlow();
  const loggedInUser = await ig.account.login(email, 'password');
  process.nextTick(async () => await ig.simulate.postLoginFlow());
})();

Error and Output

Login by email

@m1adow m1adow added question unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels Dec 26, 2023
@zakrian07
Copy link

zakrian07 commented Dec 26, 2023 via email

@m1adow
Copy link
Author

m1adow commented Dec 26, 2023

@zakrian07 The question is about how to log in by email. Login by username is working fine

@zakrian07
Copy link

zakrian07 commented Dec 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question unconfirmed This issue hasn't been read/confirmed/accepted by an admin
Projects
None yet
Development

No branches or pull requests

2 participants