I am using this GitHub's API to generate an access token for the user (mobile app), using this tutorial:
- https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#authorizing-oauth-apps
I am using a built-in webpage so the user can log in with username and password. After that, the user receives an access_token that can be used to access GitHub scopes (in my case, profile info).
The response:
{"access_token":"1234token1234", "scope":"user", "token_type":"bearer"}
But when the user logs out of the app, I want to delete/revoke this token. How can I do that?
I only found this answer here:
Revoking OAuth Access Token Results in 404 Not Found
But it is from 2013, and it is not working.
Any ideas on how to solve this? (Sorry for the English guys, Brazilian guy here o/)