You are here

static function handler::ValidateAccessToken in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO Login 8

File

src/handler.php, line 32

Class

handler

Namespace

Drupal\miniorange_oauth_client

Code

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;
  }
}