protected static function Client::discardToken in OAuth2 Client 7
Same name and namespace in other branches
- 7.2 src/Client.php \OAuth2\Client::discardToken()
Remove token from storage.
Parameters
$key: The token identifier.
1 call to Client::discardToken()
- Client::clearToken in ./
oauth2_client.inc - Clear the token data.
File
- ./
oauth2_client.inc, line 169 - Class OAuth2\Client
Class
- Client
- The class OAuth2\Client is used to get authorization from an oauth2 server. Its only goal is to get an access_token from the oauth2 server, so the only public function (besides the constructor) is getAccessToken().
Namespace
OAuth2Code
protected static function discardToken($key) {
if (isset($_SESSION['oauth2_client']['token'][$key])) {
unset($_SESSION['oauth2_client']['token'][$key]);
}
}