private function AuthTokenProvider::tokenExpired in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExpired()
- 8.2 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExpired()
- 8.3 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenExpired()
Checks if token is expired
1 call to AuthTokenProvider::tokenExpired()
- AuthTokenProvider::getAccessToken in vendor/
smartling/ api-sdk-php/ src/ AuthApi/ AuthTokenProvider.php - @inheritdoc
File
- vendor/
smartling/ api-sdk-php/ src/ AuthApi/ AuthTokenProvider.php, line 135
Class
- AuthTokenProvider
- Class AuthTokenProvider @package Smartling\AuthApi
Namespace
Smartling\AuthApiCode
private function tokenExpired() {
$tokenExpirationTime = $this->requestTimestamp + $this->data[static::RESPONSE_KEY_ACCESS_TOKEN_TTL] - static::TTL_CORRECTION_TIME_SEC;
return $this
->tokenExists() && time() > $tokenExpirationTime;
}