static function handler::ValidateAccessToken in OAuth2 Login 8
File
- src/
handler.php, line 105
Class
Namespace
Drupal\oauth2_loginCode
static function ValidateAccessToken($accessToken, $request_time) {
$current_time = time();
if ($current_time - $request_time >= 900) {
echo "Your access token has expired. Please try again.";
exit;
}
}