diff -u b/simple_oauth_extras/src/Controller/Oauth2AuthorizeController.php b/simple_oauth_extras/src/Controller/Oauth2AuthorizeController.php --- b/simple_oauth_extras/src/Controller/Oauth2AuthorizeController.php +++ b/simple_oauth_extras/src/Controller/Oauth2AuthorizeController.php @@ -134,11 +134,11 @@ * @return bool */ protected function wasAccessConfirmed($client_id, array $scopes) { - if(!empty($scopes)) { + if (!empty($scopes)) { $previous_token_entities = $this->entityTypeManager() ->getStorage('oauth2_token') ->loadByProperties([ - 'type' => '', + 'bundle' => 'access_token', 'auth_user_id' => $this->currentUser()->id(), 'client' => $client_id, 'scopes' => $scopes, @@ -148,6 +148,7 @@ return TRUE; } } + return FALSE; }