function oauth2_client_revoke_token in OAuth2 Client 7.2
Revokes an access token on the server.
Parameters
string $client_id: Name of the client.
Return value
bool Returns TRUE if the revocation was successful, otherwise FALSE.
File
- ./
oauth2_client.module, line 171 - Provides OAuth2 client functionality.
Code
function oauth2_client_revoke_token($client_id) {
$client = oauth2_client_load($client_id);
return $client
->revokeToken();
}