Update src/Appwrite/Auth/OAuth2/Twitch.php
Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
parent
8ffd822965
commit
d39758ba49
|
@ -145,7 +145,7 @@ class Twitch extends OAuth2
|
|||
]
|
||||
), true);
|
||||
|
||||
$this->user = $response['data']['0'];
|
||||
$this->user = $response['data']['0'] ?? [];
|
||||
}
|
||||
|
||||
return $this->user;
|
||||
|
|
Loading…
Reference in a new issue