NicklasWallgren / instagram-api

Instagram Private API
MIT License
145 stars 47 forks source link

Auth using access token #53

Open xsinisa opened 2 years ago

xsinisa commented 2 years ago

@NicklasWallgren is it possible to authenticate using access token? I can get access token in separate process. As I can see at the moment only way to auth is user and pass, that can be security issue or trust issue as users are mostly using oauth with that kind of apps. Thanks

NicklasWallgren commented 2 years ago

Hmm, not that I'm aware of.

The library mimics the IOS application, which only supports authentication via user credentials and nonce, as far as I know.

xsinisa commented 2 years ago

@NicklasWallgren ah, it seems that is really important for the client.. do you know the reason why is not implemented..as I will have to implement it at the end. Can you a bit explain the nonce auth. Thanks

NicklasWallgren commented 2 years ago

The nonce token is returned by the logout api endpoint, and enables on-click-login, so that the end user can easily switch between user accounts in the application.

xsinisa commented 2 years ago

@NicklasWallgren It seems that using session data that is saved to disk is a good feature. Do you know is there an expiration date for that. Is it valid "forever" or it must be recreated after some time.