You are here

public function Oauth2ClientServiceBase::clearAccessToken in OAuth2 Client 8.3

Same name and namespace in other branches
  1. 8.2 src/Service/Oauth2ClientServiceBase.php \Drupal\oauth2_client\Service\Oauth2ClientServiceBase::clearAccessToken()

Clears the access token for the given client.

Parameters

string $pluginId: The client for which a provider should be created.

Overrides Oauth2ClientServiceInterface::clearAccessToken

File

src/Service/Oauth2ClientServiceBase.php, line 52

Class

Oauth2ClientServiceBase
Base class for OAuth2 Client services.

Namespace

Drupal\oauth2_client\Service

Code

public function clearAccessToken($pluginId) {
  $client = $this
    ->getClient($pluginId);
  $client
    ->clearAccessToken();
}