Skip to content

Commit

Permalink
Fix and Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EncryptSL committed Dec 18, 2020
1 parent 8867470 commit 8ca45fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DiscordRevoke.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getAccessData() {

public function getEncodedCredentials()
{
return base64_encode(sprintf('%s:%s', $this->clientId, $this->clientSecret));
return base64_encode(sprintf('%s:%s', $this->config['clientId'], $this->config['clientSecret']));
}

}
4 changes: 2 additions & 2 deletions src/Nette/DI/RevokeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function loadConfiguration(): void
$config = $this->config;

$configData = [
'client_id' => $config->clientId,
'client_secret' => $config->clientSecret,
'clientId' => $config->clientId,
'clientSecret' => $config->clientSecret,
'api_url' => $config->api_url,
];

Expand Down

0 comments on commit 8ca45fc

Please sign in to comment.