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

Feature: logout

Open alvaroserrrano opened this issue 3 years ago • 5 comments

alvaroserrrano avatar Jan 03 '22 20:01 alvaroserrrano

Just confirming, did you try testing the other available methods after logout. Ideally they shouldn’t work and throw some errors after the logout. Could you please confirm the behaviour?

abinpaul1 avatar Jan 04 '22 12:01 abinpaul1

@alvaroserrrano @abinpaul1 is this pull request valid, it is a very important feature logout from the current session. I have tried it and it returns {'elements': [{'globalLegoTrackingToken': 'XXXX', 'legoTrackingToken': 'XXXX', 'takeoverType': 'ABI'}], 'paging': {'count': 10, 'start': 0, 'total': 1, 'links': []}}

engahmed1190 avatar Mar 02 '22 11:03 engahmed1190

I am not sure if the changes in this PR were tested. @alvaroserrrano can maybe confirm.

@engahmed1190 Are you able to use other methods after logout is called? Maybe you could verify by visiting LinkedIn and cheking if the session is still active or not. It can be viewed under Settings -> Sign in & Security -> Account access -> Where you're signed in.

abinpaul1 avatar Mar 02 '22 11:03 abinpaul1

The session is still active after using the logout

engahmed1190 avatar Mar 02 '22 12:03 engahmed1190

Oh, then it seems we have missed some logic in the logout flow. We currently only do a get request to endpoint mentioned in #191 . It requires further investigation i suppose

abinpaul1 avatar Mar 02 '22 13:03 abinpaul1