protected function splitJwt($jwt)
    {
        if (!is_string($jwt)) {
            throw new \InvalidArgumentException('The JWT string must have two dots');
        }

        $data = explode('.', $jwt);

        if (count($data) != 3) {
            throw new \InvalidArgumentException('The JWT string must have two dots');
        }

        return $data;
    }