How to check OAuthToken for GitHub apps?


#1

For OAuth apps there is an endpoint for checking whether a token is still valid. I could not get this to work for OAuthTokens I obtained as part of my GitHub app for a particular user.

Is it not possible to use this endpoint? What’s a suggested alternative to validate the tokens?


#2

Hey @b-3-n,

thanks for getting in contact. I’m afraid this endpoint is not enabled yet for GitHub Apps, so the alternative is calling the API and re-initiating OAuth flow upon 401. Enabling https://developer.github.com/v3/oauth_authorizations/#check-an-authorization for GitHub Apps is our roadmap, but can’t give you an ETA.

Cheers,
Víctor