You are here

public function Storage::unsetRefreshToken in OAuth2 Server 7

File

lib/Drupal/oauth2_server/Storage.php, line 430

Class

Storage
Provides Drupal storage (through the underlying Entity API) for the library.

Namespace

Drupal\oauth2_server

Code

public function unsetRefreshToken($refresh_token) {
  $token = oauth2_server_token_load($refresh_token);
  if ($token) {
    $token
      ->delete();
  }
}