linkedin-api
linkedin-api copied to clipboard
Feature: logout
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?
@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': []}}
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.
The session is still active after using the logout
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