diff --git a/src/Auth/OAuth/Twitch.php b/src/Auth/OAuth/Twitch.php index 96ea8a593e..b9455bd58a 100644 --- a/src/Auth/OAuth/Twitch.php +++ b/src/Auth/OAuth/Twitch.php @@ -140,7 +140,7 @@ class Twitch extends OAuth { if (empty($this->user)) { $this->user = json_decode($this->request('GET', - $this->resourceEndpoint, ['Authorization: Bearer '.urlencode($accessToken)]), true); + $this->resourceEndpoint, ['Authorization: Bearer '.urlencode($accessToken)]), true)['data']['0']; } return $this->user;