You are here

public function Client::clearToken in OAuth2 Client 7.2

Same name and namespace in other branches
  1. 7 oauth2_client.inc \OAuth2\Client::clearToken()

Clear the token data.

2 calls to Client::clearToken()
Client::getAccessToken in src/Client.php
Get and return an access token.
Client::revokeToken in src/Client.php
Revokes an access token on the server.

File

src/Client.php, line 119
Class OAuth2\Client.

Class

Client
The class OAuth2\Client is used to communicate with an oauth2 server.

Namespace

OAuth2

Code

public function clearToken() {
  static::discardToken($this->id);
  $this->token = static::loadToken($this->id);
}