public function expiresIn($tokenAbstract)
    {
        $token = $this->fromAbstract($tokenAbstract);

        if (isset($token->ExpiresAt)) {
            $expiry = \DateTime::createFromFormat(\DateTime::ATOM, $token->ExpiresAt);

            // Check if expiry is a valid datetime
            if ($expiry) {
                $now = new \Datetime;

                // Return time left between now and Expiry time (in seconds)
                $expiresIn = $expiry->getTimestamp() - $now->getTimestamp();

                return ($expiresIn > 0) ? $expiresIn : 0;
            }
        }

        return false;
    }