diff --git a/src/oauth2server/Server.php b/src/oauth2server/Server.php index ff57534b..94aaf763 100644 --- a/src/oauth2server/Server.php +++ b/src/oauth2server/Server.php @@ -194,7 +194,7 @@ maintenance of the server.' array $authoriseParams) { // Check if the user already has an access token - $accessToken = $this->db->hasAccessToken($typeId, + $accessToken = $this->db->hasAccessToken($type, $typeId, $authoriseParams['client_id']); if ($accessToken !== false) {