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
Labels
Comments
m1adow
added
question
unconfirmed
This issue hasn't been read/confirmed/accepted by an admin
labels
Dec 26, 2023
Make sure you are giving username
…On Tue, Dec 26, 2023 at 3:17 PM Valentine ***@***.***> wrote:
Form
- I've searched the Issues
<https://github.com/dilame/instagram-private-api/issues>
- I've read the basic concepts
<https://github.com/dilame/instagram-private-api#basic-concepts>
- I'm using the latest version
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 = ***@***.***';const ig = new IgApiClient();ig.state.generateDevice('');(async () => {
await ig.simulate.preLoginFlow(email);
const loggedInUser = await ig.account.login(email, 'password');
process.nextTick(async () => await ig.simulate.postLoginFlow());})();
Error and Output
image.png (view on web)
<https://github.com/dilame/instagram-private-api/assets/84251113/52837757-8de3-4f37-b056-ef880ca3af7e>
—
Reply to this email directly, view it on GitHub
<#1748>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPI5XOSWUEMPN6DGVUDAFTYLKP3ZAVCNFSM6AAAAABBDEGQE2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TMMRWGY3DINY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@zakrian07 The question is about how to log in by email. Login by username is working fine |
Oh ok
…On Tue, Dec 26, 2023 at 3:44 PM Valentine ***@***.***> wrote:
@zakrian07 <https://github.com/zakrian07> The question is about how to
login by email. Login by username working fine
—
Reply to this email directly, view it on GitHub
<#1748 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPI5XNGA7UX4F5L6BSMNJDYLKTCTAVCNFSM6AAAAABBDEGQE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZGQ2TAOBVGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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
Error and Output
The text was updated successfully, but these errors were encountered: