Skip to content

Commit

Permalink
feat: fix bug that GetUsers() API doesn't return array(#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
i0gan authored Sep 25, 2023
1 parent 74fbe88 commit 82adfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public static function getUsers(): array

$url = sprintf("%s/api/get-users?owner=%s&clientId=%s&clientSecret=%s", self::$authConfig->endpoint, self::$authConfig->organizationName, self::$authConfig->clientId, self::$authConfig->clientSecret);
$stream = Util::doGetStream($url, self::$authConfig);
$users = json_decode($stream->__toString());
$users = json_decode($stream->__toString(), true);
return $users;
}

Expand Down

0 comments on commit 82adfe3

Please sign in to comment.