From 3c2a03444f6cde7cc1ff7106a582b89042e53c1a Mon Sep 17 00:00:00 2001 From: Armino Popp Date: Thu, 16 Jan 2020 00:02:44 +0200 Subject: [PATCH] Fixed getUser --- src/Auth/OAuth/Twitch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;