dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.93k stars 1.14k forks source link

Login without username and password #1484

Open deri387 opened 3 years ago

deri387 commented 3 years ago

Is it possible login without username and password, but with something like token?

sreza78 commented 3 years ago

if you store your account token and session, it doesn't need any login with username and password anymore. just load your state and it works fine.

IzaGz commented 2 years ago

@sreza78 can you please provide example, how to do this? How to get and store the session, and how to restore this? Is it correct example https://github.com/dilame/instagram-private-api/blob/master/examples/session.example.ts ? Do you mean this?

sreza78 commented 2 years ago

@sreza78 can you please provide example, how to do this? How to get and store the session, and how to restore this? Is it correct example https://github.com/dilame/instagram-private-api/blob/master/examples/session.example.ts ? Do you mean this?

Yes, that link is a complete example of how you should do that, you can read more on #1495 too.