static function handler::ValidateAccessToken in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8
File
- src/
handler.php, line 32
Class
Namespace
Drupal\miniorange_oauth_clientCode
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;
}
}