You are here

public function AccessTokenRepository::revokeAccessToken in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/Repositories/AccessTokenRepository.php \Drupal\simple_oauth\Repositories\AccessTokenRepository::revokeAccessToken()
  2. 8.2 src/Repositories/AccessTokenRepository.php \Drupal\simple_oauth\Repositories\AccessTokenRepository::revokeAccessToken()
  3. 8.3 src/Repositories/AccessTokenRepository.php \Drupal\simple_oauth\Repositories\AccessTokenRepository::revokeAccessToken()

File

src/Repositories/AccessTokenRepository.php, line 48

Class

AccessTokenRepository
The access token repository.

Namespace

Drupal\simple_oauth\Repositories

Code

public function revokeAccessToken($token_id) {
  $this
    ->revoke($token_id);
}