3

I'm building a website which uses GitHub OAuth to authorise users. I'm successfully authorising users and able to get access_token from GitHub to talk to their API. When user logs out of my app I invalidate the session and delete the authorisation, but when user stays active in my app and logs out of GitHub, the access_token is still active article.

I'm looking for a way to logout / re-authorise users when they have logged out of GitHub.

Udaykiran R
  • 362
  • 2
  • 6
  • 16
  • 1
    Does this help? https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization – jwilleke Sep 07 '17 at 09:16
  • @jwilleke Thanks for your answer, I'm calling this api when user logs out of my app. I looking for a mechanism where I'll notified somehow when user logged out of GitHub so that I can call the api mentioned by you so that I can delete the authorisation. – Udaykiran R Sep 07 '17 at 14:31
  • @UdayVishwakarma I'm looking the same thing. I built a site that uses github api extensively. Did you ever find a github api endpoint that accomplished this? – ConfusedDeer Oct 05 '18 at 02:33

0 Answers0