private function isTokenNotExpired($token)
    {
        $payload = $this->getPayload($token);

        return isset($payload[self::EXP_KEY]) && $payload[self::EXP_KEY] > (new \DateTime())->getTimestamp();
    }
private function isTokenNotExpired($token)
    {
        $payload = $this->getPayload($token);

        return isset($payload[self::EXP_KEY]) && $payload[self::EXP_KEY] > (new \DateTime())->getTimestamp();
    }
private function isTokenNotExpired ( $ token ) { $ payload = $ this -> getPayload ( $ token ) ; return isset ( $ payload [ self :: EXP_KEY ] ) && $ payload [ self :: EXP_KEY ] > ( new \ DateTime ( ) ) -> getTimestamp ( ) ; }
Returns true if the token is not expired

@param string $token
@return bool
Returns true if the token is not expired