You are here

public function OauthTokenFileStorage::getExpires in Apigee Edge 8

1 call to OauthTokenFileStorage::getExpires()
OauthTokenFileStorage::hasExpired in src/OauthTokenFileStorage.php

File

src/OauthTokenFileStorage.php, line 135

Class

OauthTokenFileStorage
Stores OAuth token data in a file.

Namespace

Drupal\apigee_edge

Code

public function getExpires() : int {
  $token_data = $this
    ->getTokenData();
  return $token_data['expires'] ?? time() - 1;
}