You are here

public function AuthCodeAccessExample::clearAccessToken in OAuth2 Client 8.3

Clears the access token from storage.

Overrides Oauth2ClientPluginInterface::clearAccessToken

File

examples/oauth2_client_example_plugins/src/Plugin/Oauth2Client/AuthCodeAccessExample.php, line 75

Class

AuthCodeAccessExample
Auth code with access example.

Namespace

Drupal\oauth2_client_example_plugins\Plugin\Oauth2Client

Code

public function clearAccessToken() {
  $key = 'oauth2_client_access_token-' . $this
    ->getId();
  return $this->tempStore
    ->delete($key);
}