Skip to content

Commit

Permalink
Dump
Browse files Browse the repository at this point in the history
  • Loading branch information
EncryptSL committed Jan 1, 2021
1 parent 3f35d03 commit 643533a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ final class ExamplePresenter extends Nette\Application\UI\Presenter

public function actionDiscordLogout()
{
$this->discordRevoke->setToken($this->user->identity->token);
$this->discordRevoke->sendRevokeRequest('/oauth2/token/revoke');
$this->discordRevoke->createRevokeRequest('/oauth2/token/revoke')
->setToken('token here')->send();
}
}
```
2 changes: 0 additions & 2 deletions src/Curl/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public function send()
if ($httpcode >= 400)
throw new DiscordException('Expected state code 200 but returned state code ' . $httpcode, $httpcode);

return bdump($response);

curl_close($cUrl);
}

Expand Down

0 comments on commit 643533a

Please sign in to comment.