instagram-api icon indicating copy to clipboard operation
instagram-api copied to clipboard

Auth using access token

Open xsinisa opened this issue 3 years ago • 4 comments

@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

xsinisa avatar Aug 06 '21 07:08 xsinisa

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.

NicklasWallgren avatar Aug 06 '21 09:08 NicklasWallgren

@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

xsinisa avatar Aug 10 '21 09:08 xsinisa

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.

NicklasWallgren avatar Aug 18 '21 17:08 NicklasWallgren

@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.

xsinisa avatar Sep 03 '21 09:09 xsinisa