You are here

public function OauthTokenFileStorage::hasExpired in Apigee Edge 8

File

src/OauthTokenFileStorage.php, line 143

Class

OauthTokenFileStorage
Stores OAuth token data in a file.

Namespace

Drupal\apigee_edge

Code

public function hasExpired() : bool {
  $expires = $this
    ->getExpires();
  return !($expires - $this->leeway > time());
}