diff --git a/src/League/OAuth2/Server/Storage/PDO/Session.php b/src/League/OAuth2/Server/Storage/PDO/Session.php index ac1f946a..cc2b21ba 100644 --- a/src/League/OAuth2/Server/Storage/PDO/Session.php +++ b/src/League/OAuth2/Server/Storage/PDO/Session.php @@ -84,22 +84,6 @@ class Session implements SessionInterface return $db->lastInsertId(); } - /** - * Remove an associated access token from a session - * @param int $sessionId The session ID - * @return void - */ - public function removeAccessToken($sessionId) - { - $db = \ezcDbInstance::get(); - - $stmt = $db->prepare('INSERT INTO oauth_session_refresh_tokens (session_access_token_id, refresh_token) VALUE - (:accessTokenId, :refreshToken)'); - $stmt->bindValue(':accessTokenId', $accessTokenId); - $stmt->bindValue(':refreshToken', $params['refresh_token']); - $stmt->execute(); - } - /** * Associate a refresh token with a session * @param int $accessTokenId The access token ID diff --git a/src/League/OAuth2/Server/Storage/SessionInterface.php b/src/League/OAuth2/Server/Storage/SessionInterface.php index 3eaffb48..21159e4c 100644 --- a/src/League/OAuth2/Server/Storage/SessionInterface.php +++ b/src/League/OAuth2/Server/Storage/SessionInterface.php @@ -48,13 +48,6 @@ interface SessionInterface */ public function associateAccessToken($sessionId, $accessToken, $expireTime); - /** - * Remove an associated access token from a session - * @param int $sessionId The session ID - * @return void - */ - public function removeAccessToken($sessionId); - /** * Associate a refresh token with a session * @param int $accessTokenId The access token ID