diff --git a/src/OAuth2/Grant/ClientCredentials.php b/src/OAuth2/Grant/ClientCredentials.php index 02fdf5ab..0881777e 100644 --- a/src/OAuth2/Grant/ClientCredentials.php +++ b/src/OAuth2/Grant/ClientCredentials.php @@ -62,7 +62,7 @@ class ClientCredentials implements GrantTypeInterface { $accessTokenExpiresIn = AuthServer::getExpiresIn(); // Delete any existing sessions just to be sure - AuthServer::getStorage('session')->deleteSession($params['client_id'], 'client', $params['client_id']); + AuthServer::getStorage('session')->delete($params['client_id'], 'client', $params['client_id']); // Create a new session AuthServer::getStorage('session')->newSession(