Call to a member function isAdmin() call api

Hello guys, I use this plugin https://github.com/DivanteLtd/coreshop-vsbridge, but I get the error when I try to call an api, I confirm that first I call /login methode and with the token generated I call this new api :

/**
     * @Route("/vsbridge/product/get/{product}")
     * @Method("GET")
     *
     * @param Request           $request
     * @param CartResponse      $cartResponse
     *
     * @return JsonResponse
     */
    public function getProduct(
        Request $request,
        ProductRepository $productRepository,
        LoggerInterface $logger
    ) {
        $user = $this->getUser();
//        $test = $productRepository->findAll();

        return $this->json([
            'status' => 200,
            'result' => $user,
        ]);
    }

The error is :

Call to a member function isAdmin() on null (500 Internal Server Error)

Have you an idea ? please help me