private function AuthTokenProvider::tokenCanBeRenewed 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::tokenCanBeRenewed()
- 8.2 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenCanBeRenewed()
- 8.3 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::tokenCanBeRenewed()
Checks if token can be renewed
1 call to AuthTokenProvider::tokenCanBeRenewed()
- AuthTokenProvider::refreshToken in vendor/
smartling/ api-sdk-php/ src/ AuthApi/ AuthTokenProvider.php - Renews tokens
File
- vendor/
smartling/ api-sdk-php/ src/ AuthApi/ AuthTokenProvider.php, line 177
Class
- AuthTokenProvider
- Class AuthTokenProvider @package Smartling\AuthApi
Namespace
Smartling\AuthApiCode
private function tokenCanBeRenewed() {
return $this
->tokenExists() && time() < $this->requestTimestamp + $this->data[self::RESPONSE_KEY_REFRESH_TOKEN_TTL];
}