You are here

public function ResourceOwnerExample::clearAccessToken in OAuth2 Client 8.3

Clears the access token from storage.

Overrides Oauth2ClientPluginInterface::clearAccessToken

File

examples/oauth2_client_example_plugins/src/Plugin/Oauth2Client/ResourceOwnerExample.php, line 47

Class

ResourceOwnerExample
Resource Owner example plugin.

Namespace

Drupal\oauth2_client_example_plugins\Plugin\Oauth2Client

Code

public function clearAccessToken() {
  $this->state
    ->delete('oauth2_client_access_token-' . $this
    ->getId());
}