How to check OAuthToken for GitHub apps?


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?


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 for GitHub Apps is our roadmap, but can’t give you an ETA.