{"action":"created","issue":{"url":"https://api.github.com/repos/xcarpentier/react-native-linkedin/issues/99","repository_url":"https://api.github.com/repos/xcarpentier/react-native-linkedin","labels_url":"https://api.github.com/repos/xcarpentier/react-native-linkedin/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/xcarpentier/react-native-linkedin/issues/99/comments","events_url":"https://api.github.com/repos/xcarpentier/react-native-linkedin/issues/99/events","html_url":"https://github.com/xcarpentier/react-native-linkedin/issues/99","id":362678452,"node_id":"MDU6SXNzdWUzNjI2Nzg0NTI=","number":99,"title":"Cannot control the library remembering previous authentication","user":{"login":"AkshitSahani","id":23058671,"node_id":"MDQ6VXNlcjIzMDU4Njcx","avatar_url":"https://avatars2.githubusercontent.com/u/23058671?v=4","gravatar_id":"","url":"https://api.github.com/users/AkshitSahani","html_url":"https://github.com/AkshitSahani","followers_url":"https://api.github.com/users/AkshitSahani/followers","following_url":"https://api.github.com/users/AkshitSahani/following{/other_user}","gists_url":"https://api.github.com/users/AkshitSahani/gists{/gist_id}","starred_url":"https://api.github.com/users/AkshitSahani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkshitSahani/subscriptions","organizations_url":"https://api.github.com/users/AkshitSahani/orgs","repos_url":"https://api.github.com/users/AkshitSahani/repos","events_url":"https://api.github.com/users/AkshitSahani/events{/privacy}","received_events_url":"https://api.github.com/users/AkshitSahani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-21T15:58:01Z","updated_at":"2018-10-10T17:37:27Z","closed_at":null,"author_association":"NONE","body":"Hi Xavier, first of all thank you for creating this library and making this process much easier for us. I really appreciate it.\r\n\r\n\r\nI have integrated the library into a project I'm working on, but having one big issue. I cannot control when to actually do user authentication or not. e.g. After I click on the button to bring up the modal and enter the correct linkedin credentials, the login works perfectly. But even after I logout from my app, when I come and tap that button again, it remembers the previous authentication and does the login automatically. However, if I wait some time (much less than the expires_in value returned with the token), it forgets the authentication and then I have to do it again. So I am not sure what controls if the library remembers the previous authentication or not.\r\n\r\n\r\nI want to be able to control when the library remembers the authentication. I store the email fetched via the token in AsyncStorage on the phone and use that for persistent user login (take user straight to dashboard without login). However, when the user logs out, I delete these values from the AsyncStorage. So at this point I want the library to also forget the previous authentication and re-do the auth process (in case it is someone else signing in). \r\n\r\nI have looked into signing out the user from LinkedIn via an API, but haven't found anything yet.\r\n\r\n\r\nPlease guide me how I can do this.\r\n\r\n\r\nI will really appreciate your help."},"comment":{"url":"https://api.github.com/repos/xcarpentier/react-native-linkedin/issues/comments/428663087","html_url":"https://github.com/xcarpentier/react-native-linkedin/issues/99#issuecomment-428663087","issue_url":"https://api.github.com/repos/xcarpentier/react-native-linkedin/issues/99","id":428663087,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODY2MzA4Nw==","user":{"login":"AkshitSahani","id":23058671,"node_id":"MDQ6VXNlcjIzMDU4Njcx","avatar_url":"https://avatars2.githubusercontent.com/u/23058671?v=4","gravatar_id":"","url":"https://api.github.com/users/AkshitSahani","html_url":"https://github.com/AkshitSahani","followers_url":"https://api.github.com/users/AkshitSahani/followers","following_url":"https://api.github.com/users/AkshitSahani/following{/other_user}","gists_url":"https://api.github.com/users/AkshitSahani/gists{/gist_id}","starred_url":"https://api.github.com/users/AkshitSahani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkshitSahani/subscriptions","organizations_url":"https://api.github.com/users/AkshitSahani/orgs","repos_url":"https://api.github.com/users/AkshitSahani/repos","events_url":"https://api.github.com/users/AkshitSahani/events{/privacy}","received_events_url":"https://api.github.com/users/AkshitSahani/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T17:37:27Z","updated_at":"2018-10-10T17:37:27Z","author_association":"NONE","body":"Thank you so much for the information @eminsr !!! "}}
{"actor":{"display_login":"AkshitSahani"}}