mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed getUser
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user