public function Storage::unsetAccessToken in OAuth2 Server 7
File
- lib/
Drupal/ oauth2_server/ Storage.php, line 437
Class
- Storage
- Provides Drupal storage (through the underlying Entity API) for the library.
Namespace
Drupal\oauth2_serverCode
public function unsetAccessToken($access_token) {
$token = oauth2_server_token_load($access_token);
if ($token) {
$token
->delete();
}
}