public function isExpired() {
    $details = $this->tokenDetails();

    if (empty($details['expires'])) {
      return TRUE;
    }

    $currentDateTime = new \DateTime('now');
    $expireDateTime = new \DateTime($details['expires']);

    return $currentDateTime > $expireDateTime;
  }