diff --git a/src/OAuth2/Storage/SessionInterface.php b/src/OAuth2/Storage/SessionInterface.php index 9878e822..4d1b3fdc 100644 --- a/src/OAuth2/Storage/SessionInterface.php +++ b/src/OAuth2/Storage/SessionInterface.php @@ -227,8 +227,8 @@ interface SessionInterface * * SELECT oauth_scopes.scope, oauth_scopes.name, oauth_scopes.description * FROM oauth_session_scopes JOIN oauth_scopes ON - * oauth_session_scopes.scope = oauth_scopes.scope - * WHERE access_token = $accessToken + * oauth_session_scopes.scope_id = oauth_scopes.id WHERE + * session_id = $sessionId * * * Response: @@ -245,8 +245,8 @@ interface SessionInterface * ) * * - * @param string $accessToken The access token + * @param int $sessionId The session ID * @return array */ - public function getScopes($accessToken); + public function getScopes($sessionId); }