justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 380 forks source link

Application Revoke Access #479

Closed sweptsquash closed 8 years ago

sweptsquash commented 8 years ago

Is it possible to make a request to the API that revokes a user’s access to an application? Rather than having them going to their Connections Tab under their Twitch Account to remove said application.

I found this post https://github.com/justintv/Twitch-API/issues/333

Which refers to making a DELETE request to https://api.twitch.tv/kraken/oauth2/authorization/CLIENT_ID?oauth_token=OAUTH_TOKEN

However, I receive Bad Request when attempting this, looking on Twitch this is the same process used under the connections tab just made by jQuery’s Ajax Post method.

Any help would be deeply appreciated.

ghost commented 8 years ago

Currently the end user has to disconnect the app manually (which sucks) - but it's the only way to revoke oauth tokens.