You are here

public function AuthCodeExample::clearAccessToken in OAuth2 Client 8.3

Clears the access token from storage.

Overrides Oauth2ClientPluginInterface::clearAccessToken

File

examples/oauth2_client_example_plugins/src/Plugin/Oauth2Client/AuthCodeExample.php, line 53

Class

AuthCodeExample
Auth code example.

Namespace

Drupal\oauth2_client_example_plugins\Plugin\Oauth2Client

Code

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