diff --git a/composer.json b/composer.json index 29afbcd..676e6e8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "padhie/twitch-api-bundle", - "version": "1.2.2", + "version": "1.2.3", "type": "library", "keywords": [ "twitch", diff --git a/src/Service/TwitchApiService.php b/src/Service/TwitchApiService.php index 7557d9d..f65bc9e 100644 --- a/src/Service/TwitchApiService.php +++ b/src/Service/TwitchApiService.php @@ -104,8 +104,7 @@ public function setAdditionalString(string $additional): self public function getAccessTokenUrl(array $scopeList = []): string { return sprintf( - '%soauth2/authorize?response_type=token&client_id=%s&scope=%s&redirect_uri=%s', - $this->baseUrl, + 'https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=%s&scope=%s&redirect_uri=%s', $this->clientId, implode('+', $scopeList), $this->redirectUrl