You are here

public function OauthTokenFileStorage::markExpired in Apigee Edge 8

File

src/OauthTokenFileStorage.php, line 151

Class

OauthTokenFileStorage
Stores OAuth token data in a file.

Namespace

Drupal\apigee_edge

Code

public function markExpired() : void {

  // Gets token data.
  $token_data = $this
    ->getTokenData();

  // Expire in the past.
  $token_data['expires_in'] = -1;

  // Save the token data.
  $this
    ->saveToken($token_data);
}