Is there a way to return a cookie and a object with a Response in java with jersey 2.x

Hello all my problem is that i can't return both a cookie and a object on a Response from a api. When i check Network/Response in a browser console i see only the object is returned. not the cookie. I have searched around but i didn't find anything to solve the problem. Thank you in advance for any help.

API
@POST
    @Path("customer/auth/{userName:.*}/{pass}")
    @Produces(MediaType.APPLICATION_JSON)
    @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
    public Response authenticateUser(@PathParam("userName") String userName, @PathParam("pass") String pass) {
        try {

            Customer customer = new Authenticate().Authenticate(userName, pass);

            String token = customer.getToken();

            return Response.ok(token).entity(token).cookie(new NewCookie("token", token)).entity(customer).build();

        } catch (Exception e) {
            return Response.status(Response.Status.FORBIDDEN).build(); 
        }
    }


React side 
----------
onSubmit = e => {
        e.preventDefault();
        fetch(  `myresource/customer/auth/${this.state.query}/${this.state.password}`,
            {
                method: "POST",
                headers: {
                    credentials: "same-origin"

                },
                credentials: "include",
            })
            .then(res => res.json())
            .then((result) => {
                    this.setState({
                       user: result[0],
                    });
                    console.log(result);
                    this.cookies.set('token', result[1], { path: '/' });
                    console.log(this.cookies.get('token'));
                    this.history.push('/dashboard')
                }
            )
    }

constructor looks like this

 constructor(props) {
        super(props);
        const { cookies } = new Cookies();
        const { history } = createBrowserHistory();


        this.cookies = new Cookies();
        this.history = createBrowserHistory();

        this.state = {
            filteredItems: [],
            user: [],
            query: '',
            password: '',
            welcome: '',
            welcomeMsg: '',

        };

    }