slack-php-api icon indicating copy to clipboard operation
slack-php-api copied to clipboard

authRevoke should be POST not GET?

Open priit-matiisen-scoro opened this issue 1 year ago • 0 comments

The Slack API documentation states GET is the preferred way, but

$client->authRevoke([ 'token' => $token, ]);

will result in "invalid_auth"

I tried with curl and the POST request works fine

curl https://slack.com/api/auth.revoke -X POST --header "Authorization: Bearer xxx-xxxx-xxxxxxx"

Can someone confirm the issue?

priit-matiisen-scoro avatar Jan 29 '24 14:01 priit-matiisen-scoro