Update src/Appwrite/Auth/OAuth2/Auth0.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Aditya Oberai 2022-04-03 21:57:40 +05:30 committed by GitHub
parent 3397036224
commit 90e55f4c34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ class Auth0 extends OAuth2
*
* @return array
*/
protected function getUser(string $accessToken)
protected function getUser(string $accessToken): array
{
if (empty($this->user)) {
$headers = ['Authorization: Bearer '. \urlencode($accessToken)];