public function Oauth2ClientServiceBase::clearAccessToken in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 src/Service/Oauth2ClientServiceBase.php \Drupal\oauth2_client\Service\Oauth2ClientServiceBase::clearAccessToken()
Clears the access token for the given client.
Parameters
string $clientId: The client for which a provider should be created.
Overrides Oauth2ClientServiceInterface::clearAccessToken
File
- src/
Service/ Oauth2ClientServiceBase.php, line 39
Class
- Oauth2ClientServiceBase
- Base class for OAuth2 Client services.
Namespace
Drupal\oauth2_client\ServiceCode
public function clearAccessToken($clientId) {
return $this->state
->delete('oauth2_client_access_token-' . $clientId);
}