public function createJsonAuthResponse(BaseUser $user)
    {
        $responseModel = $this->createResponseAuthModel($user);

        $response = new JsonResponse($responseModel->getBody(), Response::HTTP_CREATED);

        return $this->setCookieForResponse($response, $responseModel);
    }