mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Fixed getUser
This commit is contained in:
parent
21d663b0dc
commit
3c2a03444f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue